]> granicus.if.org Git - python/commitdiff
Silence 'r may be used uninitialized' compiler warning.
authorMark Dickinson <dickinsm@gmail.com>
Mon, 21 Apr 2008 01:55:50 +0000 (01:55 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Mon, 21 Apr 2008 01:55:50 +0000 (01:55 +0000)
Modules/mathmodule.c

index d1c4822cb1cebbb3825b78ede6d55915a87d9eb6..201ffc449c22ca57dca95af9264ddf34f3b2acc9 100644 (file)
@@ -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))