On Mon, Oct 15, 2012 at 12:44 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span> wrote:<div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Compiling with clang raises 2 interesting warnings, the 2nd one being clearly<br>
a bug :<br>
<br>
src/mapfile/mapfile.l:412:18: warning: implicit conversion from enumeration type<br>
'enum map_lmd_state' to different enumeration type 'enum map_md_state' [-<br>
Wconversion]<br>
map_md_state = MAP_LMD_TOWS_GEOBBOX;<br>
~ ^~~~~~~~~~~~~~~~~~~~<br>
<br>
src/ows/ows_geobbox.c:62:23: warning: argument to 'sizeof' in 'memcpy' call is<br>
the same pointer type 'ows_geobbox *' (aka 'struct Ows_geobbox *') as the<br>
destination; expected<br>
'ows_geobbox' (aka 'struct Ows_geobbox') or an explicit length [-<br>
Wsizeof-pointer-memaccess]<br>
return memcpy(c, g, sizeof(g));<br>
~ ^~~~~~~~~<br>
<br>
--> should be memcpy(c, g, sizeof(*g));<br></blockquote><div><br></div><div><br></div><div>Thanks Even for these report !</div><div>fixed and commited</div><div><br></div><div>Did'nt yet play with clang, could change soon... </div>
</div><div><br></div>-- <br>Olivier<br>
</div>