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