Joseph S. Myers - Re: [PATCH]: Add a new option -Wvariable-length-array (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing 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]

On Wed, 7 Feb 2007, Manuel López-Ibáñez wrote:

On 07 Feb 2007 07:23:17 -0600, Gabriel Dos Reis gdr@cs.tamu.edu wrote:

"Manuel López-Ibáñez" lopezibanez@gmail.com writes:

| Things that the guidelines will clarify is whether there is any | difference between: "-Wfoo -Wno-foo" and "-Wno-foo -Wfoo".

Yes. I thought that was in the doc. The former suppresses foo, the latter enables it.

So, "-pedantic -Wno-vla" disables the warning, while "-Wno-vla -pedantic" should enable the warning, or am I missing something?

The -Wfoo -Wno-foo rule is for a single warning option "foo". -Wno-vla -pedantic is similar to -Wno-foo -Wextra for a warning in -Wextra: -Wextra implies various warnings only if not explicitly disabled, and similarly -pedantic implies certain warnings if not explicitly disabled.

-- Joseph S. Myers joseph@codesourcery.com


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