CO_SDOserver: static analysis: named parameter 'calculateCrc' of 'non-virtual' function 'readFromOd' not subsequently referenced [MISRA 2012 Rule 2.7, advisory]
This commit is contained in:
parent
c41aa14680
commit
d2770c4917
1 changed files with 3 additions and 0 deletions
|
|
@ -606,6 +606,9 @@ static bool_t readFromOd(CO_SDOserver_t *SDO,
|
|||
OD_size_t countMinimum,
|
||||
bool_t calculateCrc)
|
||||
{
|
||||
#if ((CO_CONFIG_SDO_SRV) & CO_CONFIG_SDO_SRV_BLOCK) == 0
|
||||
(void)calculateCrc; /* may be unused */
|
||||
#endif
|
||||
OD_size_t countRemain = SDO->bufOffsetWr - SDO->bufOffsetRd;
|
||||
|
||||
if (!SDO->finished && (countRemain < countMinimum)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue