This is the mail archive of the
mailing list for the GCC project.
Re: [warnings] tagging warnings about options themselves
> | -Wother-warnings
> | Enable or disable other warnings, which aren't already controlled by
> | their own specific options.
> In addition of -Wextra? I'm not sure.
I could hook them up to OPT_Wextra but that changes the logic, since
most warnings are enabled by default, but -Wextra is not.
I was thinking about this more overnight, and another option is to
introduce a small number of category warnings. It's what I've been
looking for anyway, but didn't realize it (like -Wattributes, but
bigger). Say, -Wtarget for target-related warnings, -Wlang for
language-related warnings, etc. That gives us "full control" without
going overboard on warnings, still makes our developers think about
what kinds of warnings they're adding, and we can always break out
smaller groupings later.