http://llvm.org/bugs/show_bug.cgi?id=22602
Bug ID: 22602
Summary: Bogus unused function warning for aliased symbol
Product: clang
Version: 3.5
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Function aliases don't appear to count as uses for the purposes of
-Wunused-function. The output binary is correct, only the warning is wrong.
alias.c:
static void foo() {}
void bar() __attribute__((alias("foo")));
$ clang -c -Wunused-function alias.c
/home/torne/alias.c:1:13: warning: unused function 'foo'
[-Wunused-function]
static void foo() {}
^
1 warning generated.
$ clang --version
clang version 3.5
Target: x86_64-pc-linux-gnu
Thread model: posix
--
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