1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-06-30 02:21:44 +03:00

Fix various compiler warnings

This commit is contained in:
Nick Wellnhofer
2022-09-01 07:48:38 +02:00
parent 43055d7e3d
commit a0623d9f7a
7 changed files with 24 additions and 14 deletions

View File

@ -58,7 +58,11 @@ __inline int c99_vsnprintf(char *outBuf, size_t size, const char *format, va_lis
/* #define DEBUG_EXTENSIONS */
/* #define DEBUG_EXTENSIONS */
#if PY_MAJOR_VERSION >= 3
PyObject* PyInit_libxsltmod(void);
#else
void initlibxsltmod(void);
#endif
/************************************************************************
* *
@ -623,7 +627,8 @@ libxslt_xsltSetLoaderFunc(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
}
PyObject *
libxslt_xsltGetLoaderFunc(void) {
libxslt_xsltGetLoaderFunc(PyObject *self ATTRIBUTE_UNUSED,
PyObject *args ATTRIBUTE_UNUSED) {
PyObject *py_retval;
py_retval = pythonDocLoaderObject;
@ -1229,9 +1234,9 @@ static PyMethodDef libxsltMethods[] = {
#ifdef MERGED_MODULES
#if PY_MAJOR_VERSION >= 3
extern PyObject* PyInit_libxml2mod(void);
PyObject* PyInit_libxml2mod(void);
#else
extern void initlibxml2mod(void);
void initlibxml2mod(void);
#endif
#endif