Cppcheck 2.2 reports an error in this (working) code:
#include <iostream> int main() { bool a = 0; bool b = not a; bool c = not 0; // <--- here // output is "0 1 1" std::cout << a << " " << b << " " << c << std::endl; return 0; }
Error:
test.cpp:5:11: error: There is an unknown macro here somewhere. Configuration is required. If not is a macro then please configure it. [unknownMacro] bool c = not 0; ^
Cppcheck reports an error with every constant, not only with "0".
Best, Cristian
Thanks! I have created https://trac.cppcheck.net/ticket/10013
Log in to post a comment.
Cppcheck 2.2 reports an error in this (working) code:
Error:
Cppcheck reports an error with every constant, not only with "0".
Best,
Cristian
Thanks! I have created https://trac.cppcheck.net/ticket/10013