You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Static analysis with cppcheck fails because predefined compiler
macros are not available during analysis. This causes the environment
detection in the list macro to fall back to an invalid code branch,
triggering false errors such as unused labels.
Although this fallback branch is not used in supported environments,
it is still parsed by cppcheck unless the proper macro definitions
are provided.
This commit resolves the issue by passing the necessary compiler
environment macros to cppcheck through the -D option, ensuring
correct evaluation of conditional logic in macro definitions.
- Prevent static analysis false positives in list macros
- Ensure the environment is correctly simulated during checks
Change-Id: If8b51c44f194f19f109bc4aaf91a464f850e7fdc
0 commit comments