gcc -ansi -pedantic prog.c
will reject anything which isn't strict ANSI-C.

Similarly, other compilers have a "strict" flag to reign in any vendor specific extensions to the C compiler. One...