[mapserver-users] TinyOWS 12.10rc1
Olivier Courtin
olivier.courtin at gmail.com
Sun Oct 14 16:01:21 PDT 2012
On Mon, Oct 15, 2012 at 12:44 AM, Even Rouault <even.rouault at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121015/0476bcb9/attachment.htm>
More information about the MapServer-users
mailing list