1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-06-30 02:21:44 +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

View File

@ -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