On Mon, Oct 15, 2012 at 12:44 AM, Even Rouault <even.roua...@mines-paris.org > wrote:
Compiling with clang raises 2 interesting warnings, the 2nd one being > clearly > a bug : > > src/mapfile/mapfile.l:412:18: warning: implicit conversion from > enumeration type > 'enum map_lmd_state' to different enumeration type 'enum map_md_state' [- > Wconversion] > map_md_state = MAP_LMD_TOWS_GEOBBOX; > ~ ^~~~~~~~~~~~~~~~~~~~ > > src/ows/ows_geobbox.c:62:23: warning: argument to 'sizeof' in 'memcpy' > call is > the same pointer type 'ows_geobbox *' (aka 'struct Ows_geobbox *') as the > destination; expected > 'ows_geobbox' (aka 'struct Ows_geobbox') or an explicit length [- > Wsizeof-pointer-memaccess] > return memcpy(c, g, sizeof(g)); > ~ ^~~~~~~~~ > > --> should be memcpy(c, g, sizeof(*g)); > Thanks Even for these report ! fixed and commited Did'nt yet play with clang, could change soon... -- Olivier
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users