1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

Fix compiler warnings in Python bindings

This commit is contained in:
Nick Wellnhofer
2017-10-08 14:26:56 +02:00
parent 3c232593ac
commit 477f5779ed
2 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@ -44,6 +44,7 @@ libxslt/libxslt.la
libxslt/xsltconfig.h libxslt/xsltconfig.h
ltmain.sh ltmain.sh
missing missing
python/*.pyc
python/.deps python/.deps
python/.libs python/.libs
python/Makefile python/Makefile

View File

@ -857,7 +857,7 @@ libxslt_xsltSaveResultToString(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
static PyObject *libxslt_xsltPythonErrorFuncHandler = NULL; static PyObject *libxslt_xsltPythonErrorFuncHandler = NULL;
static PyObject *libxslt_xsltPythonErrorFuncCtxt = NULL; static PyObject *libxslt_xsltPythonErrorFuncCtxt = NULL;
static void static void LIBXSLT_ATTR_FORMAT(2,3)
libxslt_xsltErrorFuncHandler(void *ctx ATTRIBUTE_UNUSED, const char *msg, libxslt_xsltErrorFuncHandler(void *ctx ATTRIBUTE_UNUSED, const char *msg,
...) ...)
{ {
@ -1180,7 +1180,6 @@ extern void initlibxml2mod(void);
void initlibxsltmod(void) { void initlibxsltmod(void) {
static int initialized = 0; static int initialized = 0;
PyObject *m;
#ifdef MERGED_MODULES #ifdef MERGED_MODULES
initlibxml2mod(); initlibxml2mod();
@ -1188,7 +1187,7 @@ void initlibxsltmod(void) {
if (initialized != 0) if (initialized != 0)
return; return;
m = Py_InitModule((char *)"libxsltmod", libxsltMethods); Py_InitModule((char *)"libxsltmod", libxsltMethods);
initialized = 1; initialized = 1;
/* /*
* Specific XSLT initializations * Specific XSLT initializations