[libxml2] python: flag two unused args



commit c31e06cc18ac5d876eb712dcd2d7e2cbe74832a6
Author: Stefan Kost <ensonic users sf net>
Date:   Mon May 9 12:52:28 2011 +0300

    python: flag two unused args

 python/libxml.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python/libxml.c b/python/libxml.c
index b0043e6..cfdaac8 100644
--- a/python/libxml.c
+++ b/python/libxml.c
@@ -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;



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