]> git.ipfire.org Git - thirdparty/gcc.git/commit
Enable -Wunused-local-typedefs when -Wall or -Wunused is on
authorDodji Seketeli <dodji@redhat.com>
Fri, 4 May 2012 16:38:27 +0000 (16:38 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Fri, 4 May 2012 16:38:27 +0000 (18:38 +0200)
commit33d11b9745bad90547e56cf97fa59f57849ebabd
tree2a313c2ba5c867797cc1b623c7f4bdc0fc018b08
parentfb4bcc8d659011362117716d831829adaa02bdf3
Enable -Wunused-local-typedefs when -Wall or -Wunused is on

Now that the libstdc++ testsuite is run with -ftrack-macro-location by
default, this patch triggers the -Wunused-local-typedefs warning when
-Wunused (and -Wall) is turned on.

The patch has been reviewed and accepted[1] a while ago, but was waiting
for the -ftrack-macro-expansion work to go in first.

Bootstrapped and tested again on x86_64-unknown-linux-gnu against
trunk.

Applied to the mainline.

[1]: http://gcc.gnu.org/ml/gcc-patches/2011-09/msg00605.html

gcc/

* opts.c (finish_options): Activate -Wunused-local-typedefs if
-Wunused is activated.
* doc/invoke.texi: Update blurb of -Wunused-local-typedefs.

From-SVN: r187167
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/opts.c