Marvin Humphrey
2006-04-11 00:28:26 UTC
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?
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/
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?
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/