Hi, I have noticed that unknownMacro hides all other errors. For example
UKNOWN_MACRO() int main() { char a[10]; a[10] = 0; return 0; }
When I run cppcheck I will get and unknownMacro error.
cppcheck test.cpp
but when I run cppcheck like this:
cppcheck --suppress=unknownMacro test.cpp
I will get zero errors, even though there is sill out of bounds error -> a[10] = 0;
Log in to post a comment.
Hi, I have noticed that unknownMacro hides all other errors. For example
When I run cppcheck I will get and unknownMacro error.
but when I run cppcheck like this:
I will get zero errors, even though there is sill out of bounds error -> a[10] = 0;