]> granicus.if.org Git - python/commitdiff
Fixed a compiler warning
authorChristian Heimes <christian@cheimes.de>
Tue, 11 Nov 2008 12:53:39 +0000 (12:53 +0000)
committerChristian Heimes <christian@cheimes.de>
Tue, 11 Nov 2008 12:53:39 +0000 (12:53 +0000)
Modules/_testcapimodule.c

index 4d2e831934e7aa822de1d1b54afb62052acab2d3..3ae5461900d8fb60500a6a5f03b151a0c014843b 100644 (file)
@@ -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)