1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-20 03:52:25 +03:00

Fix unused variable warning in python/types.c

This commit is contained in:
Nick Wellnhofer
2022-09-02 16:47:25 +02:00
parent 1bd24d448a
commit 75cdb6dd55

View File

@@ -82,8 +82,11 @@ libxml_PyFileGet(PyObject *f) {
FILE *res;
const char *mode;
int fd = PyObject_AsFileDescriptor(f);
#ifdef _WIN32
intptr_t w_fh = -1;
#else
int fd = PyObject_AsFileDescriptor(f);
#endif
#ifdef _WIN32
HMODULE hntdll = NULL;