This is the mail archive of the
mailing list for the GCC project.
Re: PR7651 Define -Wextra strictly in terms of other warning flags
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: 15 Dec 2006 11:12:41 -0600
- Subject: Re: PR7651 Define -Wextra strictly in terms of other warning flags
- References: <email@example.com>
"Manuel López-Ibáñez" <firstname.lastname@example.org> writes:
| :ADDPATCH middle-end:
| It has been an outstanding issue for a long time that some warnings
| cannot be individually enabled/disabled. The most striking example of
| this is -Wextra . The warnings emitted by -Wextra are considered,
| at the same time, questionable or hard to suppress and still useful in
| some cases. Thus, the ability to individually control each of them is
| a desirable characteristic frequently requested by users .
|  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7651
|  http://kerneltrap.org/node/7434
| The following patch is a little step towards that goal. It adds a new
| option -Wempty-body that takes over the function of warning for an
| empty body occurring in an if or else statement. The new option is
| enabled by -Wextra, so we keep the current behaviour but add the
| ability to enable/disable this individual warning.
| Bootstrapped and regression tested with --enable-languages=all on
| OK for mainline?
Yes, after modified as suggested by Ian.