|
From: <sv...@va...> - 2005-10-12 10:32:13
|
Author: tom Date: 2005-10-12 11:32:08 +0100 (Wed, 12 Oct 2005) New Revision: 4905 Log: Add -Wdeclaration-after-statement to the compiler flags so we can catch code that will fail on older compilers. Modified: trunk/Makefile.core.am trunk/Makefile.tool-flags.am Modified: trunk/Makefile.core.am =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/Makefile.core.am 2005-10-12 10:29:40 UTC (rev 4904) +++ trunk/Makefile.core.am 2005-10-12 10:32:08 UTC (rev 4905) @@ -9,7 +9,7 @@ -DVGO_$(VG_OS)=3D1 \ -DVGP_$(VG_ARCH)_$(VG_OS)=3D1 =20 -BASE_AM_CFLAGS =3D @ARCH_CORE_AM_CFLAGS@ -Wmissing-prototypes -Winline -= Wall -Wshadow -O -g +BASE_AM_CFLAGS =3D @ARCH_CORE_AM_CFLAGS@ -Wmissing-prototypes -Wdeclarat= ion-after-statement -Winline -Wall -Wshadow -O -g =20 PIC_AM_CFLAGS =3D $(BASE_AM_CFLAGS) -fpic -fno-omit-frame-pointer =20 Modified: trunk/Makefile.tool-flags.am =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/Makefile.tool-flags.am 2005-10-12 10:29:40 UTC (rev 4904) +++ trunk/Makefile.tool-flags.am 2005-10-12 10:32:08 UTC (rev 4905) @@ -5,6 +5,6 @@ -DVGP_$(VG_ARCH)_$(VG_OS)=3D1 =20 AM_CPPFLAGS =3D $(add_includes) -AM_CFLAGS =3D $(WERROR) -Wmissing-prototypes -Winline -Wall -Wshadow -O = -g @ARCH_TOOL_AM_CFLAGS@ +AM_CFLAGS =3D $(WERROR) -Wmissing-prototypes -Wdeclaration-after-stateme= nt -Winline -Wall -Wshadow -O -g @ARCH_TOOL_AM_CFLAGS@ AM_CCASFLAGS =3D $(add_includes) =20 |
|
From: Julian S. <js...@ac...> - 2005-10-12 11:04:30
|
> Add -Wdeclaration-after-statement Ehm .. gcc-3.3.3 on both x86 and ppc32 have never heard of this. You sure it isn't a gcc4ism? J |
|
From: Tom H. <to...@co...> - 2005-10-12 11:25:26
|
In message <200...@ac...>
Julian Seward <js...@ac...> wrote:
>> Add -Wdeclaration-after-statement
>
> Ehm .. gcc-3.3.3 on both x86 and ppc32 have never heard of this.
> You sure it isn't a gcc4ism?
Quite probably... I'll sort it out.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Nicholas N. <nj...@cs...> - 2005-10-12 14:39:01
|
On Wed, 12 Oct 2005, Tom Hughes wrote: >>> Add -Wdeclaration-after-statement >> >> Ehm .. gcc-3.3.3 on both x86 and ppc32 have never heard of this. >> You sure it isn't a gcc4ism? > > Quite probably... I'll sort it out. I think it came in with 3.4.0. Nick |