I find some of the -Weffc++
warnings quite helpful (return-type of post-increment) and others not so much (absence of initialization of a member in a constructor). My first instinct would thus be to grep -v
-out the warnings I don't like. However, I also like -Werror
in combination with -fmax-errors
which lets me work on one error/warning at a time, but prohibits the grep -v
approach. Is there some way to selectively enable/disable some but not all of the warnings that -Weffc++
throws out?
↧
only want a subset of the -Weffc++ warnings in gcc
↧