On Apr 10, 2006, at 5:28 PM, Marvin Humphrey wrote:
Greets,
I regularly test my modules on OS X, RedHat 9, and FreeBSD 5.3
before releasing. On all of these systems, the C compiler allows
the declaration of variables anywhere in a block. I try to write
C89 compliant code, but sometimes I slip up and none of them will
catch it. Are there any flags I could pass to the C compiler to
force it to choke on variable declarations that are illegal under C89?
-Wall, -pedantic among others.... Thanks for the private replies.
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/