Re: Re: Depending on C99 (Re: GtkBindingSignal changes)



> 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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]