http://llvm.org/bugs/show_bug.cgi?id=22712
Bug ID: 22712
Summary: clang warning on static inlines with -Wunused-function
Product: clang
Version: 3.6
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 13950
--> http://llvm.org/bugs/attachment.cgi?id=13950&action=edit
bzip2 compressed preprocessed source file for gdb-7.9/gdb/remote.c
Clang 3.5, 3.6 and 3.7svn are all erroneously warning on static inlines as seen
in gdb-7.9/gdb/remote.c...
remote.c:2567:1058: warning: unused function 'VEC_thread_item_t_embedded_size'
[-Wunused-function]
remote.c:2567:1210: warning: unused function 'VEC_thread_item_t_embedded_init'
[-Wunused-function]
remote.c:2567:2076: warning: unused function 'VEC_thread_item_t_pop'
[-Wunused-function]
...
I can't find the clang documentation but FSF gcc's shows...
-Wunused-function
Warn whenever a static function is declared but not defined
or a non-inline static function is unused. This warning is
enabled by -Wall.
The attached preprocessed source for gdb-7.9/gdb/remote.c reproduces the
problem with...
clang-3.6 -Wunused-function -c remote.i
--
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