With this and your comment in mind, how about if we add -Wswitch-default to build-aux/gcc-warning.spec? It doesn't seem to be of much use in practice.
For what it's worth, Emacs configure.ac disables -Wswitch-default (too many
warnings) and -Wswitch (since -Wall implies -Wswitch, and the Emacs folks want
to shorten the command line). Coreutils configure.ac disables both
-Wswitch-enum (unnecessary, since Gnulib also disables it) and -Wswitch-default.
- gcc/g++-warning.spec: remove -Wswitch-enum? Reuben Thomas
- Re: gcc/g++-warning.spec: remove -Wswitch-enum? Paul Eggert
- Re: gcc/g++-warning.spec: remove -Wswitch-enum? Reuben Thomas
- Re: gcc/g++-warning.spec: remove -Wswitch-enum? Paul Eggert