[LLVMbugs] [Bug 9202] New: False unused function warning for extern "C" function in unnamed namespace

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 11 12:46:57 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9202

           Summary: False unused function warning for extern "C" function
                    in unnamed namespace
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: stephan.bergmann.secondary at googlemail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


$ clang --version
clang version 2.9 (trunk 125213)
Target: x86_64-apple-darwin10
Thread model: posix

$ printf 'namespace { extern "C" void f() {} }\n' > test.cc

$ clang -c -Wunused-function test.cc
test.cc:1:29: warning: unused function 'f' [-Wunused-function]
namespace { extern "C" void f() {} }
                            ^
1 warning generated.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list