summaryrefslogtreecommitdiff
path: root/python/libxml.c
diff options
context:
space:
mode:
authorAron Xu <aron@debian.org>2012-05-25 04:03:35 +0000
committerAron Xu <aron@debian.org>2012-05-25 04:03:35 +0000
commitd7372d053bbd1d58216fbb04d1771ffa4cc3e624 (patch)
tree62b661911406394bbeaca8951d660bb6d8aac0de /python/libxml.c
parent2d1849b271fa8697b88d07ba7d78dc83591e1363 (diff)
downloadlibxml2-d7372d053bbd1d58216fbb04d1771ffa4cc3e624.tar.gz
Imported Upstream version 2.8.0+dfsg1upstream/2.8.0+dfsg1
Diffstat (limited to 'python/libxml.c')
-rw-r--r--python/libxml.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/python/libxml.c b/python/libxml.c
index b0043e6..9dabf89 100644
--- a/python/libxml.c
+++ b/python/libxml.c
@@ -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, int severity, char *str)
}
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, PyObject * args)
xmlDocPtr doc;
const char *encoding;
int format;
- int len;
xmlSaveCtxtPtr ctxt;
xmlBufferPtr buf;
int options = 0;