<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang warning on static inlines with -Wunused-function"
   href="http://llvm.org/bugs/show_bug.cgi?id=22712">22712</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang warning on static inlines with -Wunused-function
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>howarth.mailing.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13950" name="attach_13950" title="bzip2 compressed preprocessed source file for gdb-7.9/gdb/remote.c">attachment 13950</a> <a href="attachment.cgi?id=13950&action=edit" title="bzip2 compressed preprocessed source file for gdb-7.9/gdb/remote.c">[details]</a></span>
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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>