Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22075

only want a subset of the -Weffc++ warnings in gcc

$
0
0

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?


Viewing all articles
Browse latest Browse all 22075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>