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 22 April 2012 21:15, Jason Merrill <jason@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.


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