--- embedaddon/libxml2/python/libxml.c 2012/02/21 23:38:00 1.1.1.1 +++ embedaddon/libxml2/python/libxml.c 2013/07/22 01:22:29 1.1.1.2 @@ -28,7 +28,7 @@ #include "libxml_wrap.h" #include "libxml2-py.h" -#if (defined(_MSC_VER) || defined(__MINGW32__)) && !defined(vsnprintf) +#if defined(_MSC_VER) && !defined(vsnprintf) #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) #elif defined(WITH_TRIO) && !defined(vsnprintf) #include "trio.h" @@ -1745,7 +1745,7 @@ typedef struct typedef xmlValidCtxtPyCtxt *xmlValidCtxtPyCtxtPtr; static void -libxml_xmlValidCtxtGenericErrorFuncHandler(void *ctx, int severity, char *str) +libxml_xmlValidCtxtGenericErrorFuncHandler(void *ctx, ATTRIBUTE_UNUSED int severity, char *str) { PyObject *list; PyObject *result; @@ -1772,7 +1772,7 @@ libxml_xmlValidCtxtGenericErrorFuncHandler(void *ctx, } static void -libxml_xmlValidCtxtGenericWarningFuncHandler(void *ctx, int severity, char *str) +libxml_xmlValidCtxtGenericWarningFuncHandler(void *ctx, ATTRIBUTE_UNUSED int severity, char *str) { PyObject *list; PyObject *result; @@ -2762,7 +2762,6 @@ libxml_serializeNode(ATTRIBUTE_UNUSED PyObject * self, xmlDocPtr doc; const char *encoding; int format; - int len; xmlSaveCtxtPtr ctxt; xmlBufferPtr buf; int options = 0;