From 3bae65bacdc7c03e665fabb2065c740358ac362f Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 11 Nov 2008 12:53:39 +0000 Subject: [PATCH] Fixed a compiler warning --- Modules/_testcapimodule.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 4d2e831934e..3ae5461900d 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -517,10 +517,12 @@ test_u_code(PyObject *self) PyObject *tuple, *obj; Py_UNICODE *value; Py_ssize_t len; + int x; /* issue4122: Undefined reference to _Py_ascii_whitespace on Windows */ /* Just use the macro and check that it compiles */ - int x = Py_UNICODE_ISSPACE(25); + x = Py_UNICODE_ISSPACE(25); + x = x; tuple = PyTuple_New(1); if (tuple == NULL)