Re: Re: Depending on C99 (Re: GtkBindingSignal changes)
- From: Christophe Fergeau <cfergeau gmail com>
- To: GTK-DEVEL-LIST gnome org
- Cc:
- Subject: Re: Re: Depending on C99 (Re: GtkBindingSignal changes)
- Date: Fri, 6 Jan 2006 16:28:15 +0100
> 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]