-
Notifications
You must be signed in to change notification settings - Fork 253
Closed
Description
Describe the bug
The use of the BUGCHECK macro with the second argument blank looks suspicious and it is reported as a syntax error by newer versions of the cppcheck tool:
Checking src/os/shared/src/osapi-printf.c ...
src/os/shared/src/osapi-printf.c:269:30: error: syntax error [syntaxError]
BUGCHECK((String) != NULL, )
^
To Reproduce
Execute a recent version of cppcheck against OSAL source code - observed in version 2.7.
Expected behavior
Should pass cleanly
System observed on:
Ubuntu 22.04
Additional context
The second argument being blank here is intentional, because it is a return value and this is a void function, so it needs to be empty. The syntax is actually valid but it is just a bit unusual.
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
Reactions are currently unavailable