Closed jphickey closed 1 year ago
FYI @jphickey - I'm seeing these new errors in the cppcheck workflow now as well:
src/os/shared/src/osapi-printf.c:269:30: error: syntax error [syntaxError]
BUGCHECK((String) != NULL, )
^
src/unit-test-coverage/vxworks/ut-stubs/src/vxworks-os-impl-common-stubs.c:32:1: error: There is an unknown macro here somewhere. Configuration is required. If UT_DEFAULT_STUB is a macro then please configure it. [unknownMacro]
UT_DEFAULT_STUB(OS_API_Impl_Init, (osal_objtype_t idtype))
^
https://github.com/thnkslprpt/osal/actions/runs/3416460591/jobs/5686627983
Errors from the CI run w/ Ubuntu 20.04: https://github.com/nasa/osal/actions/runs/3463520016
Describe the bug The latest version of cppcheck reports the following errors/concerns in the OSAL source code:
To Reproduce Execute the following cppcheck command in OSAL (same as what is used in the static analysis workflow "strict" setting):
cppcheck --force --inline-suppr --std=c99 --language=c --enable=warning,performance,portability,style --suppress=variableScope --inconclusive src/bsp/ src/os/
Expected behavior Should pass cleanly
System observed on: Ubuntu 22.04 (cppcheck version 2.7)
Reporter Info Joseph Hickey, Vantage Systems, Inc.