I have some warnings come up which I would like to suppress from the GUI without adding inline suppressions. In the project Warning options tab I can add a suppression, and it works for global suppression. If I try to qualify it by adding a filename then it stops suppressing the error altogether. I can get it to work if I put the full path name as the filename, but I don't really want to do that as it makes everything specific to the layout on my machine. I can also make it work by prefixing the filename with * which is what I will do for now. But that doesn't seem right either as it could match other files in subdirectories.
I have also tried setting a root path, using forward slashes, backslashes, double backslashes, trailing slash. No joy there either.
Is there a way to make this work or is it a bug?
This is the latest cppcheck 2.5 downloaded yesterday and running on Windows.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have some warnings come up which I would like to suppress from the GUI without adding inline suppressions. In the project Warning options tab I can add a suppression, and it works for global suppression. If I try to qualify it by adding a filename then it stops suppressing the error altogether. I can get it to work if I put the full path name as the filename, but I don't really want to do that as it makes everything specific to the layout on my machine. I can also make it work by prefixing the filename with * which is what I will do for now. But that doesn't seem right either as it could match other files in subdirectories.
I have also tried setting a root path, using forward slashes, backslashes, double backslashes, trailing slash. No joy there either.
Is there a way to make this work or is it a bug?
This is the latest cppcheck 2.5 downloaded yesterday and running on Windows.
Thanks! I can reproduce it is a bug. I created this ticket: https://trac.cppcheck.net/ticket/10377