The following example throws false warnings, caused by the branch predictor macro. (Obviously in this case the performance of using UNLIKELY is dubious, but there's other more performance critical examples I see getting warnings in my application.) Can this please get fixed in a future drop? Thanks much. Thanks //Cppcheck 1.82: // // cppcheck --enable=all bug.cpp //[bug.cpp:10] -> [include/cppcheck_bug.cpp:12]: (warning) Either the condition '!fp' is redundant or there is possible null pointer dereference:...
The following small test case extracted from a larger program with cppcheck 1.71...
Thanks for the great work on cppcheck. I recently updated from 1.52 to 1.67, and...