<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/87766>87766</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Tentative array definition warning has no warning name
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:diagnostics
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bevin-hansson
</td>
</tr>
</table>
<pre>
If you define an array with an incomplete type, you get a warning about it being a tentative array definition:
```
int a[];
```
```
<source>:12:5: warning: tentative array definition assumed to have one element
12 | int a[];
| ^
```
However, this warning has no name. Even if the tentative array behavior is desired, it's not possible to disable it selectively via the command line or using diagnostics pragmas. This would be useful.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0ks9uqzoQh5_GbEaNiA0JLFikf6J7932BAQ8wV8aOPIYqb39l2p5z1NMiJPwT5uMbz6AIT56oU_Wjqp8LXNMcYtfTxv5hRi8SfNEHe-_-HeEeVrA0sidADxgj3uGN05wT-yEsN0eJIN1vpPTTvn2iBAhvGD37CbAPawJO0NMeIZFPmHijD9pO58TBK3NR5bMqL-pUftx7ZJ8A32WVefx2y9doniSscSBlXpS5HLUyl1qZy6dVXv7sASiyLmQhBZhxIwiegBwt5NM7HwCOGtT5Cb5zg_3Kb1X98q3fP-GNNor5xNLM8uuwZhTwATwudICXjTzwCGmmv2R7mnHjEIEFLAlHshnGSelzRiS4BRHuHeUiLAvmJScQcjRkkLvDxrjDh7As6C243OUQYZXsYhknHyTxIHCLOC0oB3jdbcPqLPQEq9C4ukNhO2Nb02JB3fF81OZYVeemmDss6wGp1sN4orE6Vqa1fYuNrduhsWPTFtzpUldlVdbHsq5Mc2gMnpt2bNCUtWnGQVUlLcju4Ny2HEKcChZZqWvO59OpcNiTk32OtR4c7o39w1tpnQc8dvnrh36dRFWlY0nym5c4Oepefx6GL735jLlHxRpdN6d0kzy6-qr0deI0r_1hCIvS1_yTj8fDLYb_aEhKX_cKROnrXsT_AQAA__94eCWY">