If you add "-pedantic" to the gcc flags, it will inform you that the construct is not valid in the selected standard (which is C90 by default in gcc pre-5).
Even with "-pedantic", gcc does not make a full audit of the code against the standard, it simply enables all diagnostics required by the standard (and some additional ones).