Menu

suppress all error, unknown macro, for all files

2023-03-11
2023-03-12
  • Allan Braun

    Allan Braun - 2023-03-11

    I am running cppcheck 2.10 from the GUI
    I would like to suppress all errors for all files: There is an unknown macro ...
    This should be done through the Preferences Dialog

    I added the path to afx.h in the Clang tab, but it did not help

     
  • Daniel Marjamäki

    I would like to suppress all errors for all files: There is an unknown macro ...

    Create a project and run analysis.

    Right click on a "There is an unknown macro" and select "suppress id".

    When you analyse this project next time these errors will not be shown.

    I added the path to afx.h in the Clang tab, but it did not help

    Go to "File menu". Click on "Edit project...".

    Add the include path in the "Paths and defines" tab.

     

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.