c++ - Treat all warnings of specific level as errors but not those of next level -
i know there /wx treat warnings errors. , there /we1234 treat specific warning (i.e. 1234) error.
what miss flag treat warnings of level 3 errors not of level 4.
in legacy project managed rid of w3 warnings , increased w4. raised couple thousands warnings, not able spot new warnings of w3 when being introduced.
want make w3 warnings errors.
i compile list of w3 warnings , add /wexyz each of them, seems way tedious.
you have couple of choices:
either add /wexyz each level 3 warning. follows:
- add couple of such flags through gui
- open project file in text editor, , find format uses
- scrape list of level 3 warnings suitable webpage
- edit correct format
- put settings project file.
alternatively, rather enabling all level 4 warnings, enable them 1 @ time (once have fixed previous ones).
Comments
Post a Comment