[libxslt] Fix compiler warnings in Python bindings
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Fix compiler warnings in Python bindings
- Date: Sun, 8 Oct 2017 13:46:28 +0000 (UTC)
commit 477f5779ed4b88ba052b6dfe5fe068bb72034556
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Sun Oct 8 14:26:56 2017 +0200
Fix compiler warnings in Python bindings
.gitignore | 1 +
python/libxslt.c | 5 ++---
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 791af6f..695cd11 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,6 +44,7 @@ libxslt/libxslt.la
libxslt/xsltconfig.h
ltmain.sh
missing
+python/*.pyc
python/.deps
python/.libs
python/Makefile
diff --git a/python/libxslt.c b/python/libxslt.c
index 8dd6c78..b552ed9 100644
--- a/python/libxslt.c
+++ b/python/libxslt.c
@@ -857,7 +857,7 @@ libxslt_xsltSaveResultToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
static PyObject *libxslt_xsltPythonErrorFuncHandler = NULL;
static PyObject *libxslt_xsltPythonErrorFuncCtxt = NULL;
-static void
+static void LIBXSLT_ATTR_FORMAT(2,3)
libxslt_xsltErrorFuncHandler(void *ctx ATTRIBUTE_UNUSED, const char *msg,
...)
{
@@ -1180,7 +1180,6 @@ extern void initlibxml2mod(void);
void initlibxsltmod(void) {
static int initialized = 0;
- PyObject *m;
#ifdef MERGED_MODULES
initlibxml2mod();
@@ -1188,7 +1187,7 @@ void initlibxsltmod(void) {
if (initialized != 0)
return;
- m = Py_InitModule((char *)"libxsltmod", libxsltMethods);
+ Py_InitModule((char *)"libxsltmod", libxsltMethods);
initialized = 1;
/*
* Specific XSLT initializations
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]