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

           Summary: Wunused-function false positive
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


This is a false positive:
--
ddun...@67-218-110-63:tmp$ cat t.c
static void f0(void);
void f1(void(*a0)(void));
void f2(void) { f1(f0); }
static void f0(void) {}
ddun...@67-218-110-63:tmp$ clang -c -Wunused-function t.c
t.c:4:13: warning: unused function 'f0' [-Wunused-function]
static void f0(void) {}
            ^
1 diagnostic generated.
ddun...@67-218-110-63:tmp$ 
--


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to