On Sep 21, 2007, at 1:15 AM, Joshua Isom wrote:
-Werror -Wdeclaration-after-statement
Should work according to the manpage. But just one little problem.
src/string.c
In file included from src/string.c:26:
src/string_private_cstring.h:21: warning: size of 'parrot_cstrings'
is 7560 bytes
*** Error code 1
So we'd have to change some things around. Every single warning
would have to go away.
How about runniing the gcc output through a filter that checks for
the warning and if present indicates failure?
Josh
On Sep 20, 2007, at 4:24 PM, Nicholas Clark wrote:
On Thu, Sep 20, 2007 at 02:13:11PM -0700, chromatic wrote:
Hoist that declaration up a bit, or C89 compilers will complain.
Is there a
GCC warning that we could enable here?
-Wdeclaration-after-statement
Sadly it can't be made an error.