This is the mail archive of the gcc-patches@gcc.gnu.org mailing 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]

Re: [PATCH] PR c++/33255 - Support -Wunused-local-typedefs warning


On 09/08/2011 04:50 PM, Dodji Seketeli wrote:
Is this be OK for trunk when PR preprocessor/7263 gets in, assuming it
passes bootstrap and tests on trunk at that moment?

Yes, except...


--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -3505,6 +3505,7 @@ To suppress this warning use the @samp{unused} attribute
  @item -Wunused-local-typedefs @r{(C, Objective-C, C++ and Objective-C++ only)}
  @opindex Wunused-local-typedefs
  Warn when a typedef locally defined in a function is not used.
+This warning is enabled by @option{-Wall}.

Don't you want to say "This warning is also enabled by @option{-Wunused}, which is enabled by @option{-Wall}."?


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]