summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-04-21 01:55:50 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-04-21 01:55:50 (GMT)
commit0da94c8a343e0f895ab7b8b49f2132ff2189f145 (patch)
treeee51af333469d5658d2870831b9a57a462b858ad
parenta5489d415e77d82b13a5fca1e28e2aa202c1814d (diff)
downloadcpython-0da94c8a343e0f895ab7b8b49f2132ff2189f145.zip
cpython-0da94c8a343e0f895ab7b8b49f2132ff2189f145.tar.gz
cpython-0da94c8a343e0f895ab7b8b49f2132ff2189f145.tar.bz2
Silence 'r may be used uninitialized' compiler warning.
-rw-r--r--Modules/mathmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index d1c4822..201ffc4 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -569,6 +569,7 @@ math_pow(PyObject *self, PyObject *args)
/* deal directly with IEEE specials, to cope with problems on various
platforms whose semantics don't exactly match C99 */
+ r = 0.; /* silence compiler warning */
if (!Py_IS_FINITE(x) || !Py_IS_FINITE(y)) {
errno = 0;
if (Py_IS_NAN(x))