> I would expect that to only be enabled if using gnu89, but indeed mixed
> declarations and code do compile with -ansi or -std=c89. The only way to cause
> this to generate warnings AFAIK is -pedantic:

You can also use:

      -Wdeclaration-after-statement (C only)
           Warn when a declaration is found after a statement in a block.
           This construct, known from C++, was introduced with ISO C99 and is
           by default allowed in GCC.  It is not supported by ISO C90 and was
           not supported by GCC versions before GCC 3.0.
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to