[gdal-dev] compilation error (trunk)

Even Rouault even.rouault at spatialys.com
Sat Apr 18 13:26:50 PDT 2015


Le samedi 18 avril 2015 12:20:42, Martin Landa a écrit :
> Hi,
> 
> I have problem to compile GDAL trunk on my PC, any idea what could be
> wrong?
> 
> gdalwarpkernel.cpp: In function 'CPLErr GWKOpenCLCase(GDALWarpKernel*)':
> gdalwarpkernel.cpp:3802:1: error: jump to label 'free_warper'
> [-fpermissive] free_warper:
>  ^
> gdalwarpkernel.cpp:3597:22: error:   from here [-fpermissive]
>                  goto free_warper;

I've just fixed it.

You can't do:

'''
goto some_label;
int foo = 0;
some_label:
;
'''

But the following is valid (well, compiles):
'''
goto some_label;
int foo;
foo = 0;
some_label:
;
'''

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55772 quotes the rule from the 
C++ standard.

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list