<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/96689>96689</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
libc: enable -Wunused
</td>
</tr>
<tr>
<th>Labels</th>
<td>
good first issue,
code-quality,
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nickdesaulniers
</td>
</tr>
</table>
<pre>
via https://github.com/llvm/llvm-project/pull/96591#discussion_r1653050200 it seems like we don't have `-Wunused` set.
We should enable it and clean up the instances it finds.
We should append that to `compile_options` in libc/cmake/modules/LLVMLibCObjectRules.cmake.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkrtu3DoQhp-GaggL3NHqVrDwsaHKBwFSxKXBy2g1MZdUNOQGfvtAMjapUqQhgZkfc_t-w0yXiKhF-59onytT8pI2Hcm9e2RTQiTcuLLJf-gbGbnkvLJoHgVMAqYL5aXY2qWrgCmE2_17WLf0HV0WMK0lBAHT2LXjSUDjiV1hphTftlPXNqpVoJSkLBnxyjLQO8qfKH2KAvosF3NDKTr18FpiYfSiU5Ix10I9C_X4-b6i5CWV4CVGYwPu1Uz00gU0UZZV5gUlRc4mOuQ9O1P0_JcaZl0xepkXk2VOe2-XrisFfEtrphR5H4GiDGSdgMldzTsKmK7Jl4AsYHp5-fb_C9mnL3Y_wdc9Wh-quvK68WMzmgr1qT-NzbkFNVaLdrZxFvvBnkewZlDdMM_GWegddPPYqoo0KDirDtrT2DbQ120_N0Pfzv3cDYPrG3FWeDUU6v38ddouFTEX1GPXDWMVjMXAB2OAS0pezrRxlodGAAh4EgAueXz4UUyg_PE7-Lkm7N7Y9MHWlguLswrEmf-0y5QD6kPdPN5B3KlVZQv6n61zTMeHefYlbhp-BQAA__8iA9yR">