CANopen: static analysis: named parameter 'OD_statusBits' of 'non-virtual' function 'CO_CANopenInit' not subsequently referenced [MISRA 2012 Rule 2.7, advisory]
This commit is contained in:
parent
308f32ee8b
commit
4cee088192
1 changed files with 4 additions and 0 deletions
|
|
@ -968,6 +968,10 @@ CO_ReturnError_t CO_CANopenInit(CO_t *co,
|
|||
{
|
||||
(void)SDOclientTimeoutTime_ms; (void)SDOclientBlockTransfer;
|
||||
CO_ReturnError_t err;
|
||||
|
||||
#if ((CO_CONFIG_EM) & CO_CONFIG_EM_STATUS_BITS) == 0
|
||||
(void)OD_statusBits; /* may be unused */
|
||||
#endif
|
||||
|
||||
if ((co == NULL)
|
||||
|| ((CO_GET_CNT(NMT) == 0U) && (NMT == NULL))
|
||||
|
|
|
|||
Loading…
Reference in a new issue