On 04/22/2012 03:38 PM, Manuel López-Ibáñez wrote:
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)

-Wno-all doesn't disable the group elements? I'd think it should, or we should warn that it's a useless option.

-Werror=pedantic implies -Werror=x ? (to mimic -pedantic-errors)

I would think so.

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?

Sounds like a bug to me.

-Wno-error=pedantic -Werror implies -Werror=x or -Wno-error=x? The
documentation only says that -Wno-error= does not imply anything.

This should work the same as -Wno-error=all does for errors that are part of the "all" group.

I think the bit about -Wno-error not implying anything just means that -Wno-error=foo does not imply either -Wfoo or -Wno-foo.

Jason

Reply via email to