On Mon Dec 15 22:42:23 2008, petdance wrote:
> > I can see the -Werror= ... in the compiler flags, but it doesn't seem to 
> > actually make it an error.
> 
> This seems like a compiler bug.  Even in this simplest case you don't
> get an error:
> 
> uniqua:~/parrot : cat foo.c
> void foo( int n ) {
>     n = 4;
>     char ch = 'a';
>     n = 5;
> }
> 
> uniqua:~/parrot : gcc -o foo.o -c foo.c
> 
> uniqua:~/parrot : gcc -o foo.o -c foo.c -Wdeclaration-after-statement
> foo.c: In function ‘foo’:
> foo.c:3: warning: ISO C90 forbids mixed declarations and code
> 
> uniqua:~/parrot : gcc -o foo.o -c foo.c -Werror=declaration-after-statement
> foo.c: In function ‘foo’:
> foo.c:3: warning: ISO C90 forbids mixed declarations and code
> 

According to whiteknight, this is working in gcc 4.4.1. Resolving ticket.

-- 
Will "Coke" Coleda
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to