I have a project where there is a #warning "something must be done" in a .h file and CPPcheck does not show any errors or warnings or messages for that project. However, if I comment-out the #warning, everything starts showing again. What is wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a project where there is a #warning "something must be done" in a .h file and CPPcheck does not show any errors or warnings or messages for that project. However, if I comment-out the #warning, everything starts showing again. What is wrong?
this is a serious regression in latest 1.75. We rewrote the preprocessor and now get this behaviour. It is not by intention of course.
Weird that we didn't see this. We tested Cppcheck on 1000's of projects before the release.
Here is a code example that reproduce the problem:
Could you write a ticket in our issue tracker?
http://trac.cppcheck.net
I fixed this regression with https://github.com/danmar/simplecpp/commit/d46698a463313aefd81b519c608eae6a8725a4d2