CO_Emergency: static analysis: increment/decrement operation combined with other operation with side-effects [MISRA 2012 Rule 13.3, advisory]
This commit is contained in:
parent
9bffb7d789
commit
f48d5058e6
1 changed files with 2 additions and 1 deletions
|
|
@ -670,7 +670,8 @@ void CO_EM_process(CO_EM_t *em,
|
|||
#endif
|
||||
|
||||
/* increment pointer */
|
||||
em->fifoPpPtr = (++fifoPpPtr < em->fifoSize) ? fifoPpPtr : 0U;
|
||||
fifoPpPtr++;
|
||||
em->fifoPpPtr = (fifoPpPtr < em->fifoSize) ? fifoPpPtr : 0U;
|
||||
|
||||
/* verify message buffer overflow. Clear error condition if all
|
||||
* messages from fifo buffer are processed */
|
||||
|
|
|
|||
Loading…
Reference in a new issue