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

    <tr>
        <th>Summary</th>
        <td>
            [Clang] Update `-Wstrict-prototypes`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            c23,
            clang:diagnostics
      </td>
    </tr>

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

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

<pre>
    I noticed this a few days ago but forgot about it, so this is to remind me to fix this later. This code:
```c
int main() {}
```
compiled as C with `-std=c17` and `-pedantic` prints:
```c
test.c:4:9: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
    4 | int main() {
      |         ^
      |          void
```
‘deprecated in all versions of C’ is not exactly correct anymore; this should instead warn that this is a C23 extension.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEU8Fu8zYMfhr6QjSQ5Ti2Dz6kyR9g523YmZEYW4MsGRLdNm8_2Ek7YGgxw4BI6iNFfiQpZzcE5h7qV9D6d5cSOcugNdTnghYZY-o_rcU12nv_G4YozrBFGV1Gwhu_o6V7RhoiXhfBW0xDFKRrXASdgD5hjg-0yygRE08uWJx4VW7u43HnSTjt8I9VNtEyVEdQZ1BHOKjHbx66C4ITuQC6Bd0hNK_QnP8DfagmTrPzbJEynvDdyYhwUC9ZLFRnUzZwUEjBbsaZLQVxZrXNyQXJPyYgnGVnoDruoTp2UB3xnVJwYVhFwtsSjLgY0LLxlGiT18dXPgjnFCXKfeaVDctzYkPCFl1A8h7fOGUXQ8Z4wxNC_fryV5bkjLx8OWaon_UiIu4RmhN-Q8oXAjfE5wf1r5-u8C06-y2T8EtDq6Br_yfhT1y3FheiIH-QEX9HE1NiI0jhPsXEUL0-up7HuPg1VhYmuxGJMpJ8zQvhSVfIH8JhfWZX2L6yXdVRwX3ZqK4ry7KuirFvG026a-jWqJrKqj3c2q7W-0Yf6sYcylvheq30XlWqLeuyK8vdQXesG8WqMtqUrYK94omc33n_Nu1iGgqX88J9u993TeHpyj4_N8Xoal0SfVplT1vrraMhxCzO5OcCpX6N9HJdhgx75V2W_G9sceK3xTtt_vUZ_5wtCW_T-E3PD6pYku9HkXkbTX0BfRmcjMt1Z-IE-rKGfh6r499sBPRlqyGDvmxl_BMAAP__XbQzmg">