Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add semicolon to make cppcheck happy #3364

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BsAtHome
Copy link
Contributor

@BsAtHome BsAtHome commented Mar 3, 2025

The option macros RTAPI_MP_*() for RT components/modules need a semicolon to terminate the statement to make cppcheck happy.

These macros, without semicolon, will generate an "unknown macro" error. It only happens when ULAPI is defined because that is true, these are not defined in that case. In practice, having ULAPI defined in RT components is not possible, but cppcheck does not know that.

Luckily it doesn't matter, code-wise, whether or not a semicolon is there. So this PR just makes cppcheck happy and prevents the unknown macro errors by adding the semicolon.

@BsAtHome BsAtHome changed the title Add semicolon to make cppcheck Add semicolon to make cppcheck happy Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant