CO_SRDO: static analysis: the name '_configurationValid' matches a pattern reserved to the compiler [MISRA 2012 Rule 21.2, required]
This commit is contained in:
parent
88e437b525
commit
59e0c3b07b
2 changed files with 4 additions and 4 deletions
|
|
@ -106,7 +106,7 @@ configurationValidUnset(CO_SRDOGuard_t* SRDOGuard) {
|
|||
OD_size_t dummy;
|
||||
|
||||
SRDOGuard->configurationValid = false;
|
||||
SRDOGuard->_configurationValid = false;
|
||||
SRDOGuard->privateConfigValid = false;
|
||||
|
||||
OD_IO->write(&OD_IO->stream, &val, sizeof(val), &dummy);
|
||||
}
|
||||
|
|
@ -393,7 +393,7 @@ CO_SRDO_init_start(CO_SRDOGuard_t* SRDOGuard, OD_entry_t* OD_13FE_configurationV
|
|||
|
||||
if (configurationValid == CO_SRDO_VALID_MAGIC) {
|
||||
/* Private variable, erroneous SRDO initialization will clear this. */
|
||||
SRDOGuard->_configurationValid = true;
|
||||
SRDOGuard->privateConfigValid = true;
|
||||
}
|
||||
|
||||
return CO_ERROR_NO;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ typedef struct {
|
|||
* finish of all @CO_SRDO_init() functions. Cleared on configuration change. */
|
||||
bool_t configurationValid;
|
||||
/** Private helper variable set on the start of SRDO configuration */
|
||||
bool_t _configurationValid;
|
||||
bool_t privateConfigValid;
|
||||
/** Object for input / output on the OD variable 13FE:00. Configuration
|
||||
* of any of the the SRDO parameters will write 0 to that variable. */
|
||||
OD_IO_t OD_IO_configurationValid;
|
||||
|
|
@ -218,7 +218,7 @@ CO_ReturnError_t CO_SRDO_init_start(CO_SRDOGuard_t* SRDOGuard, OD_entry_t* OD_13
|
|||
* @param SRDOGuard This object will be finalized.
|
||||
*/
|
||||
static inline void CO_SRDO_init_end(CO_SRDOGuard_t* SRDOGuard) {
|
||||
SRDOGuard->configurationValid = SRDOGuard->_configurationValid;
|
||||
SRDOGuard->configurationValid = SRDOGuard->privateConfigValid;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue