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: unassig...@gcc.gnu.org ReportedBy: m...@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.