[xml] [patch] Fix a compiler warning in xmlschemastypes.c



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

Attachment: libxml.patch
Description: Binary data



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