mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-05 20:33:24 +03:00
avoid unused variable warnings
This commit is contained in:
parent
5e61c1842f
commit
c718cc6c94
|
@ -1367,7 +1367,6 @@ setup_module(PyObject *m) {
|
||||||
PyDict_SetItemString(d, "HAVE_FRIBIDI", v);
|
PyDict_SetItemString(d, "HAVE_FRIBIDI", v);
|
||||||
PyDict_SetItemString(d, "HAVE_HARFBUZZ", v);
|
PyDict_SetItemString(d, "HAVE_HARFBUZZ", v);
|
||||||
if (have_raqm) {
|
if (have_raqm) {
|
||||||
const char *a, *b;
|
|
||||||
#ifdef RAQM_VERSION_MAJOR
|
#ifdef RAQM_VERSION_MAJOR
|
||||||
v = PyUnicode_FromString(raqm_version_string());
|
v = PyUnicode_FromString(raqm_version_string());
|
||||||
#else
|
#else
|
||||||
|
@ -1376,13 +1375,15 @@ setup_module(PyObject *m) {
|
||||||
PyDict_SetItemString(d, "raqm_version", v);
|
PyDict_SetItemString(d, "raqm_version", v);
|
||||||
|
|
||||||
#ifdef FRIBIDI_MAJOR_VERSION
|
#ifdef FRIBIDI_MAJOR_VERSION
|
||||||
a = strchr(fribidi_version_info, ')');
|
{
|
||||||
b = strchr(fribidi_version_info, '\n');
|
const char *a = strchr(fribidi_version_info, ')');
|
||||||
if (a && b) {
|
const char *b = strchr(fribidi_version_info, '\n');
|
||||||
v = PyUnicode_FromStringAndSize(a + 2, b - a - 2);
|
if (a && b && a + 2 < b) {
|
||||||
|
v = PyUnicode_FromStringAndSize(a + 2, b - (a + 2));
|
||||||
} else {
|
} else {
|
||||||
v = Py_None;
|
v = Py_None;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
v = Py_None;
|
v = Py_None;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user