[LLVMbugs] [Bug 22712] New: clang warning on static inlines with -Wunused-function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 26 08:22:52 PST 2015


            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: unassignedclangbugs at nondot.org
          Reporter: howarth.mailing.lists at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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'
remote.c:2567:1210: warning: unused function 'VEC_thread_item_t_embedded_init'
remote.c:2567:2076: warning: unused function 'VEC_thread_item_t_pop'

I can't find the clang documentation but FSF gcc's shows...

     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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150226/a7ef9504/attachment.html>

More information about the llvm-bugs mailing list