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: PR c/44774 -Werror=edantic


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


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