On 22 April 2012 21:15, Jason Merrill <ja...@redhat.com> wrote: > On 04/22/2012 02:42 PM, Manuel López-Ibáńez wrote: >> >> Which seems to suggest that we add an option name for each pedwarn >> enabled by default. Is this also what you suggest? > > > I agree with this, and I think that's also what Gaby was suggesting by > "finer-grained".
Then, let's say we have one of such options. For example, let's call it -Wx for this example. If the behaviour is consistent with other "group" options like -Wall, then: -Wx is enabled by default (like now) -Wno-pedantic does not disable -Wx (like now) But then -Werror=pedantic implies -Werror=x ? (to mimic -pedantic-errors) For example, -Wmain is enabled by default but also by -Wall and -pedantic. However, -Werror=all does not enable -Werror=main. Is this a bug or the desired behaviour? And even less clear case is: -Wno-error=pedantic -Werror implies -Werror=x or -Wno-error=x? The documentation only says that -Wno-error= does not imply anything. Cheers, Manuel.