[cfe-commits] r129794 - in /cfe/trunk: include/clang/AST/DeclBase.h include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticSemaKinds.td lib/AST/DeclBase.cpp lib/Sema/Sema.cpp lib/Sema/SemaExpr.cpp lib/Sema/SemaTemplateInstantiateDe

Argyrios Kyrtzidis akyrtzi at gmail.com
Sat Apr 23 20:03:04 PDT 2011


On Apr 23, 2011, at 5:11 PM, Nico Weber wrote:

> On Sat, Apr 23, 2011 at 1:13 PM, Nico Weber <thakis at chromium.org> wrote:
>> …and I can't just replace -Wno-unused-function with
>> -Wno-unneeded-internal-declaration, because clang still warns about
>> 
>> thakis-macbookpro:src thakis$ cat test.cc
>> namespace {
>> void f() {}
>> }
> 
> I filed http://llvm.org/pr9786 for this. Other than that, I think
> nothing else needs to be done here.
> 
>> 
>> while gcc doesn't. So -Wunused-function in gcc and clang are still
>> different. Warnings about unused functions in the unnamed namespace
>> should probably be moved to Wunneeded-internal-declaration.

I commented in the bug report.



More information about the cfe-commits mailing list