------- Comment #2 from manu at gcc dot gnu dot org 2010-07-01 21:53 ------- man...@gcc11:~$ ~/test2/161617M/build/gcc/cc1 empty2.c -pedantic-errors empty2.c:1:1: error: struct has no members [-pedantic] empty2.c:2:1: error: unnamed struct/union that defines no instances
man...@gcc11:~$ ~/test2/161617M/build/gcc/cc1 empty2.c -pedantic -Werror empty2.c:1:1: error: struct has no members [-Werror=edantic] empty2.c:2:1: error: unnamed struct/union that defines no instances [-Werror] We also should add a -Wpedantic-default (or -Wpedantic-required) for pedwarns enabled by default (not by -pedantic). OK? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44774