summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2003-11-05 03:16:46 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2003-11-05 03:16:46 +0000
commit9d9bdf0b0a5bccb7ce808cbe195e944428af5340 (patch)
treebc923b6dae131162f3463ac0bc590c373dcbfadf /python
parenta7339040ed4172f5420ade87799d432bf046ec69 (diff)
downloadlibxslt-9d9bdf0b0a5bccb7ce808cbe195e944428af5340.tar.gz
libxslt-9d9bdf0b0a5bccb7ce808cbe195e944428af5340.tar.bz2
libxslt-9d9bdf0b0a5bccb7ce808cbe195e944428af5340.zip
Minor enhancements to eliminate compile/test warnings
* libxslt/xsltconfig.h.in, libexstl/exsltconfig.h.in: changed macro ATTRIBUTE_UNUSED for gcc so that, if undefined, it's defined as __attribute__((unused)) * python/libxslt.c: fixed ATTRIBUTE_UNUSED to appear after variable declaration * libxslt/preproc.c: minor change to get rid of unused var/code
Diffstat (limited to 'python')
-rw-r--r--python/libxslt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/libxslt.c b/python/libxslt.c
index e5a852dc..78b4607d 100644
--- a/python/libxslt.c
+++ b/python/libxslt.c
@@ -1,5 +1,5 @@
/*
- * libxslt.c: this modules implements the main part of the glue of the
+ libxslt.c: this modules implements the main part of the glue of the
* libxslt library and the Python interpreter. It provides the
* entry points where an automatically generated stub is either
* unpractical or would not match cleanly the Python model.
@@ -195,7 +195,7 @@ libxslt_xsltElementPreCompCallback(xsltStylesheetPtr style, xmlNodePtr inst,
return (NULL);
}
- args = Py_BuildValue("(OOO)",
+ args = Py_BuildValue((char *)"(OOO)",
libxslt_xsltStylesheetPtrWrap(style),
libxml_xmlNodePtrWrap(inst),
pyobj_element_f);
@@ -252,7 +252,7 @@ libxslt_xsltElementTransformCallback(xsltTransformContextPtr ctxt,
return;
}
- args = Py_BuildValue("OOOO",
+ args = Py_BuildValue((char *)"OOOO",
libxslt_xsltTransformContextPtrWrap(ctxt),
libxml_xmlNodePtrWrap(node),
libxml_xmlNodePtrWrap(inst),
@@ -503,7 +503,7 @@ libxslt_xsltApplyStylesheet(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
}
PyObject *
-libxslt_xsltSaveResultToString(PyObject *self, PyObject *args) {
+libxslt_xsltSaveResultToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
PyObject *py_retval; /* our final return value, a python string */
xmlChar *buffer;
int size = 0;
@@ -554,7 +554,7 @@ static PyObject *libxslt_xsltPythonErrorFuncHandler = NULL;
static PyObject *libxslt_xsltPythonErrorFuncCtxt = NULL;
static void
-libxslt_xsltErrorFuncHandler(ATTRIBUTE_UNUSED void *ctx, const char *msg,
+libxslt_xsltErrorFuncHandler(void *ctx ATTRIBUTE_UNUSED, const char *msg,
...)
{
int size;
@@ -621,7 +621,7 @@ libxslt_xsltErrorInitialize(void)
}
PyObject *
-libxslt_xsltRegisterErrorHandler(ATTRIBUTE_UNUSED PyObject * self,
+libxslt_xsltRegisterErrorHandler(PyObject * self ATTRIBUTE_UNUSED,
PyObject * args)
{
PyObject *py_retval;