mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Silence 'r may be used uninitialized' compiler warning.
This commit is contained in:
parent
a5489d415e
commit
0da94c8a34
1 changed files with 1 additions and 0 deletions
|
|
@ -569,6 +569,7 @@ math_pow(PyObject *self, PyObject *args)
|
||||||
|
|
||||||
/* deal directly with IEEE specials, to cope with problems on various
|
/* deal directly with IEEE specials, to cope with problems on various
|
||||||
platforms whose semantics don't exactly match C99 */
|
platforms whose semantics don't exactly match C99 */
|
||||||
|
r = 0.; /* silence compiler warning */
|
||||||
if (!Py_IS_FINITE(x) || !Py_IS_FINITE(y)) {
|
if (!Py_IS_FINITE(x) || !Py_IS_FINITE(y)) {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if (Py_IS_NAN(x))
|
if (Py_IS_NAN(x))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue