Menu

Suppression by file not working in GUI

2021-07-20
2021-07-20
  • Simon Large

    Simon Large - 2021-07-20

    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.

     
  • Daniel Marjamäki

    Thanks! I can reproduce it is a bug. I created this ticket: https://trac.cppcheck.net/ticket/10377

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.