Matus - 2022-03-16

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;