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:
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user