https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115185
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note in c, "abc" is valid for [3] initializer . This is different from c++. There is a dup of this bug already filed asking to add the warning. I think it was added but it is not included in either -Wextra nor -Wall.