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

Daniel Morissette dmorissette at mapgears.com
Mon Jul 23 08:17:03 PDT 2012

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
Provider of Professional MapServer Support since 2000

More information about the mapserver-dev mailing list