[Python-checkins] r67920 - python/trunk/Modules/_testcapimodule.c
benjamin.peterson
python-checkins at python.org
Tue Dec 23 21:09:28 CET 2008
Author: benjamin.peterson
Date: Tue Dec 23 21:09:28 2008
New Revision: 67920
Log:
use a global variable, so the compiler doesn't optimize the assignment out
Modified:
python/trunk/Modules/_testcapimodule.c
Modified: python/trunk/Modules/_testcapimodule.c
==============================================================================
--- python/trunk/Modules/_testcapimodule.c (original)
+++ python/trunk/Modules/_testcapimodule.c Tue Dec 23 21:09:28 2008
@@ -474,6 +474,8 @@
#ifdef Py_USING_UNICODE
+volatile int x;
+
/* Test the u and u# codes for PyArg_ParseTuple. May leak memory in case
of an error.
*/
@@ -486,8 +488,7 @@
/* 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 = x;
+ x = Py_UNICODE_ISSPACE(25);
tuple = PyTuple_New(1);
if (tuple == NULL)
More information about the Python-checkins
mailing list