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

    <tr>
        <th>Summary</th>
        <td>
            -Wno-unsafe-buffer-usage is useless
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          lucas-mior
      </td>
    </tr>
</table>

<pre>
    Hello, I strongly suggest to remove this warning, or at least remove from the `-Weverything` option.

Before clang 16.0 I was able to compile all my projects using `-Weveything` without problems,
fixing my code and paying attention to the (useful) warnings that this option gave.
However, it seems that the `-Wno-unsafe-buffer-usage` was added in version 16 (my system updated to it recently)
and then compiling any project is impossible without getting a huge list of useless warnings about *any* pointer
being used, even in main:

```
main.c:25:26: warning: 'argv' is an unsafe pointer used for buffer
access [-Wunsafe-buffer-usage]
int main(int argc, char *argv[]) {
                   ~~~~~~^~~~~~
main.c:35:21: note: used in buffer access here
```

One can't possibly reason about his code using this warning.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0VM2OozgQfhrnUkoEJpDmwCE9vdHMaY9zNlCAV8aOXOVkueyzrwro7lltD4rsJHz29-MqGyI7esRGla-qfDuYxFOIjUudoeNsQzy0oV-a7-hcUPob_ADiGPzoFqA0jkgMHCDiHB4IPFmCp4ne-lHAIYJhcGiI3yFDDDPwhKCq7PgTHxgXngReZRDubIM_qexNZddtfMUhRITOGT9CXp0y-AFPQ2Bah0LchfluHYJxDuYF7jH8hR0TJLJ-_OD4pHhankJiAbYOZ1L620Y02L9lxbxAF3oE43u4m0X-MszoRZjwrcr1SyIcklO6fndLwJPhLYDNBozmgbuX7-EpTiUSy0CI8wd-D8KHY_JkBjy2aRgwHhOZEVfF4rbvsQfr4YGRZO-8EhXzArQQ4wzp3hvGXhRaibpDz25Rut74xQ1P6Pe4Vlf-Iy2wBHa-ByIrqb5HNCLzioQpjQjOEkMYIBE6JPo0blpBK301flH6CvdgPWPcmFuULRJhL-bxgV5szMZ6VVx_PWhVZftn_SmIU6eKqy5lqFRx_Sis4gpKX0wcH0pfRLzxsIX3zr0SwhAibGnuKXSdCFfl6_HnV2GXbxvOet4U6hf5auLYifhuMnG1KcRrs8j5q8vrtgr-__yzPqr8Y5v_a6xYjeXixgdGmVfV1u-iYdc7YcQvM9rGPz1CZ7zSF4b9DBeIaCj4_WikJtei3pri1yY9Hfqm6OuiNgds8qouivzlXGWHqakv56LIy7LthnwwGsuzqYv8rKtWV9gO54NtdKaL7EXX-Tk_6-yk2yqr--HSFdi3Wdupc4azse7k3GM-hTgeLFHCpiqzS35wpkVH662jtccnrC-V1nIJxUbWHNs0kjpnUnn0uQtbdtj8rmWkHvYSPaTomon5TlJr-qb0bbQ8pfbUhVnpm-y4T8e9FZS-rTpI6duq898AAAD__3BmqyA">