public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53322] New: Wunused-local-typedefs is not enabled by Wall or Wunused
@ 2012-05-11 12:31 manu at gcc dot gnu.org
  2012-05-11 12:36 ` [Bug c++/53322] " manu at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: manu at gcc dot gnu.org @ 2012-05-11 12:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53322

             Bug #: 53322
           Summary: Wunused-local-typedefs is not enabled by Wall or
                    Wunused
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: manu@gcc.gnu.org


Since warn_unused_local_typedefs is never -1, then it is never enabled by
Wunused.

The fix is:

Index: gcc/c-family/c.opt
===================================================================
--- gcc/c-family/c.opt  (revision 187385)
+++ gcc/c-family/c.opt  (working copy)
@@ -672,11 +672,11 @@ Warn about unrecognized pragmas
 Wunsuffixed-float-constants
 C ObjC Var(warn_unsuffixed_float_constants) Warning
 Warn about unsuffixed float constants

 Wunused-local-typedefs
-C ObjC C++ ObjC++ Var(warn_unused_local_typedefs) Warning
+C ObjC C++ ObjC++ Var(warn_unused_local_typedefs) Warning EnabledBy(Wunused)
 Warn when typedefs locally defined in a function are not used

 Wunused-macros
 C ObjC C++ ObjC++ Warning
 Warn about macros defined in the main file that are not used


But I am sure this will trigger some warnings.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-05-24 18:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-11 12:31 [Bug c++/53322] New: Wunused-local-typedefs is not enabled by Wall or Wunused manu at gcc dot gnu.org
2012-05-11 12:36 ` [Bug c++/53322] " manu at gcc dot gnu.org
2012-05-15 17:35 ` dodji at gcc dot gnu.org
2012-05-22  5:12 ` dodji at gcc dot gnu.org
2012-05-24 18:38 ` dodji at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).