1
0
Fork 0

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:
temi54c1l8 2024-06-12 16:36:20 +02:00
parent 308f32ee8b
commit 4cee088192

View file

@ -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))