[xml] [patch] Fix wrong argument type in functino xmlSchemaValidateLengthFacetInternal



Hi,

the attached patch fixes the following warning in libxml:

[1902/9563] CC obj/third_party/libxml/src/libxml.xmlschemastypes.o
../../third_party/libxml/src/xmlschemastypes.c:5188:12: warning: case
value not in enumerated type '' [-Wswitch]
           case XML_SCHEMAS_NOTATION:
                ^
../../third_party/libxml/src/xmlschemastypes.c:5183:11: warning: case
value not in enumerated type '' [-Wswitch]
           case XML_SCHEMAS_ANYURI:
                ^
2 warnings generated.

valType has type xmlSchemaTypeType, but all the enums listed in the
switch are in xmlSchemaValType. It looks like the right fix is to just
fix the function interface.

Nico

ps: Apologies if this makes it through twice, I didn't see my first
mail on http://mail.gnome.org/archives/xml/2012-February/thread.html

Attachment: libxml.patch
Description: Binary data



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