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] |
- From: "Joseph S. Myers"
- To: Manuel López-Ibáñez
- Cc: Gabriel Dos Reis , Seongbae Park , gcc-patches
- Date: Wed, 7 Feb 2007 14:15:42 +0000 (UTC)
- Subject: Re: [PATCH]: Add a new option -Wvariable-length-array
- References: <ab3a61990702061603j22178af4ve67dee9ecc4ff701@mail.gmail.com> <Pine.LNX.4.64.0702070015260.25338@digraph.polyomino.org.uk> <ab3a61990702061619r6c265a5brfa39d7173ce1ef2a@mail.gmail.com> <ab3a61990702061639h7024daddxaba0e86e14c49c22@mail.gmail.com> <6c33472e0702061707i42a3f966u409f7e437adf5671@mail.gmail.com> <ab3a61990702061712s595ee411u5fa9e51835acf033@mail.gmail.com> <Pine.LNX.4.64.0702070132140.25338@digraph.polyomino.org.uk> <ab3a61990702062216l67c33305n9b427ba5ef655f23@mail.gmail.com> <6c33472e0702070131o1e2eba66o19d6a823327cf223@mail.gmail.com> <87odo62jay.fsf@soliton.cs.tamu.edu> <6c33472e0702070605p3a8a0599ufcc3e136e9297858@mail.gmail.com>
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
- References:
- [PATCH]: Add a new option -Wvariable-length-array
* From: Seongbae Park - Re: [PATCH]: Add a new option -Wvariable-length-array
* From: Joseph S. Myers - Re: [PATCH]: Add a new option -Wvariable-length-array
* From: Seongbae Park - Re: [PATCH]: Add a new option -Wvariable-length-array
* From: Seongbae Park - Re: [PATCH]: Add a new option -Wvariable-length-array
* From: Manuel López-Ibáñez - Re: [PATCH]: Add a new option -Wvariable-length-array
* From: Seongbae Park - Re: [PATCH]: Add a new option -Wvariable-length-array
* From: Joseph S. Myers - Re: [PATCH]: Add a new option -Wvariable-length-array
* From: Seongbae Park - Re: [PATCH]: Add a new option -Wvariable-length-array
* From: Manuel López-Ibáñez - Re: [PATCH]: Add a new option -Wvariable-length-array
* From: Gabriel Dos Reis - Re: [PATCH]: Add a new option -Wvariable-length-array
* From: Manuel López-Ibáñez
- [PATCH]: Add a new option -Wvariable-length-array
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |