[xml] Warnings you might want to fix



Hi,

Here are the warnings I get while building libxml2 2.6.19 with -Wall
flag, you might want to fix these, or at least, some.

Mike

PS: I'm not sure the generated libxml.c file in the python directory
matches the one in the tarball, so line numbers might not be accurate.


xpath.c: In function `xmlXPathRegisterFuncNS__internal_alias':
xpath.c:2834: warning: ISO C forbids passing arg 4 of `xmlHashAddEntry2__internal_alias' between function 
pointer and `void *'
xpath.c: In function `xmlXPathFunctionLookupNS__internal_alias':
xpath.c:2915: warning: ISO C forbids assignment between function pointer and `void *'
xpath.c: In function `xmlXPathCompOpEval':
xpath.c:10434: warning: ISO C forbids assignment between function pointer and `void *'
xpath.c:10459: warning: ISO C forbids assignment between function pointer and `void *'

c14n.c: In function `xmlC14NIsNodeInNodeset':
c14n.c:268: warning: dereferencing type-punned pointer will break strict-aliasing rules

testModule.c: In function `main':
testModule.c:46: warning: dereferencing type-punned pointer will break strict-aliasing rules

libxml.c: In function `libxml_xmlValidCtxtGenericErrorFuncHandler':
libxml.c:1739: warning: unused parameter `severity'
libxml.c: In function `libxml_xmlValidCtxtGenericWarningFuncHandler':
libxml.c:1766: warning: unused parameter `severity'
libxml.c: In function `libxml_xmlRelaxNGSetValidErrors':
libxml.c:3092: warning: dereferencing type-punned pointer will break strict-aliasing rules
libxml.c: In function `libxml_xmlRelaxNGFreeValidCtxt':
libxml.c:3138: warning: dereferencing type-punned pointer will break strict-aliasing rules
libxml.c: In function `libxml_xmlSchemaSetValidErrors':
libxml.c:3256: warning: dereferencing type-punned pointer will break strict-aliasing rules
libxml.c: In function `libxml_xmlSchemaFreeValidCtxt':
libxml.c:3303: warning: dereferencing type-punned pointer will break strict-aliasing rules



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]