I'm applying the following as obvious, GCC 4.7 doesn't grok -Wpedantic. Sorry for not testing that properly.
2013-12-04 Marek Polacek <pola...@redhat.com> PR c/59351 testsuite/ * gcc.dg/pr59351.c: Use -pedantic instead of -Wpedantic. --- gcc/testsuite/gcc.dg/pr59351.c.mp3 2013-12-04 16:49:17.232824975 +0100 +++ gcc/testsuite/gcc.dg/pr59351.c 2013-12-04 16:49:30.380873769 +0100 @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-std=c99 -Wpedantic" } */ +/* { dg-options "-std=c99 -pedantic" } */ unsigned int foo (void) Marek