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

> On Sat, Apr 23, 2011 at 1:13 PM, Nico Weber <[email protected]> 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.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to