How to turn on (literally) ALL of GCC’s warnings?

I would like to enable — literally — ALL of the warnings that GCC has. (You’d think it would be easy…)

  • You’d think -Wall might do the trick, but nope! Still need -Wextra.

  • You’d think -Wextra might do the trick, but nope! Not all of the warnings listed here (for example, -Wshadow) are enabled by this. And I still have no idea if this list is comprehensive.

How do I tell GCC to enable (no if’s, and’s, or but’s!) all the warnings it has?

8 Answers
8

Leave a Comment