This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]