[mapserver-dev] Mixed code and variable definition breaks MSVC builds

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Mon Jul 23 09:26:50 PDT 2012


Ditto... +1 and +1.

-----Original Message-----
From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette
Sent: Monday, July 23, 2012 10:17 AM
To: mapserver-dev at lists.osgeo.org
Subject: Re: [mapserver-dev] Mixed code and variable definition breaks MSVC builds

On 12-07-23 3:56 AM, thomas bonfort wrote:
> On Sun, Jul 22, 2012 at 12:21 AM, Even Rouault
>>
>> Based on what exists in GDAL, I suggest the following change in 
>> configure.in, as well as the addition of m4/ax_cflags_warn_all.m4, 
>> which will add by default the "-Wdeclaration-after-statement" flag in 
>> CFLAGS with GCC, which generates
>> "warning: ISO C90 forbids mixed declarations and code" (what would be 
>> cool would be to error out, only on that error, instead of just 
>> warning)
>
> +1 for adding the warning
> +1 to make it an error if that is possible
>

+2 here too.

--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000



_______________________________________________
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev




More information about the mapserver-dev mailing list