https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71115
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-05-17 CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 Known to fail| |4.8.2, 4.9.3, 5.3.0, 6.1.0, | |7.0 --- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed. Similarly to other bug reports involving warnings and macros defined in system headers this too is caused by -Wno-system-headers and the macro NULL being defined in system headers. $ cat uu.c && /build/gcc-trunk-svn/gcc/xgcc -B /build/gcc-trunk-svn/gcc -S -Wsystem-headers -o/dev/null uu.c #include <stddef.h> const char* a[1] = { "", NULL }; In file included from uu.c:1:0: uu.c:3:26: warning: excess elements in array initializer const char* a[1] = { "", NULL }; ^ uu.c:3:26: note: (near initialization for ‘a’)