<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55492>55492</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            "-Wno-unused-function" is a valid clang flag but it doesn't do anything
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          lukensmall
      </td>
    </tr>
</table>

<pre>
    "-Wno-unused-function" is a valid clang flag but it doesn't stop -Wunused-function warnings

I'm using clang 13 on OpenBSD in geany and using -Weverything or -pedantic will trip -Wunused-function warnings when there are unused functions. Compiling with "-Wno-unused-function" is legal, but has zero effect.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytUj2PnDAQ_TXQjEDGBnYpKO5uFSlVihRbD3gAX4yN_LFo8-vjZe8UKcVVkfwxY7958_zkwcp7n3FeXI0toomeZDFFMwZlTToG5QHhhlpJGDWaGSaNMwwxgAogLfmEOgXwwW5QXP8hgB2dUWb2Gbtk7OW5fk8FK0Sfzj8oKwEJ-2Mj8_rzAsrATGjugEZ-wIor3cjdw_JIrINiI4kmqBF2pTUEp75qDvtCBsJCjgDTfOLgE-dLeLPrpvSDfFdhga_t0DSjzvjbYcKCHn6Ts0DTRGMoc9kL2YkO86CCpv_grLTJiOfT8-h0v4Sw-Uy8ZPxbGnPSG4dytGtKtL59bsXm7HsSlFLlfSSfgqapO54v_Ym1jBPjTScGKejcyuZcIzUoRDfKs8g1DqR9nzWvSaehHQ6KFGfNJVc9Z5yzpmpZVZ1EVTbUVthOVc1aWZ_ac1YzWlHp8qGjtG7OXX9IGmL6CDXTygf_9xK9V7MhOtolfoxhsaki_iLjV9Q6P7r3h_o_Q_HmGQ">