Warn for braces around a pointer initializer.

This commit is contained in:
Kugel Fuhr
2024-09-08 09:11:47 +02:00
parent 5e5dd1d6c4
commit 3c5269dede
3 changed files with 11 additions and 0 deletions

2
test/ref/bug2134.c Normal file
View File

@@ -0,0 +1,2 @@
int i = { 0 };
char* p = { 0 };

2
test/ref/bug2134.cref Normal file
View File

@@ -0,0 +1,2 @@
bug2134.c:1: Warning: Braces around scalar initializer
bug2134.c:2: Warning: Braces around scalar initializer