Commit e0c9a753 authored by Victor Stinner's avatar Victor Stinner

faulthandler: make quiet a gcc 4.6 warning (z was unused)

parent 502ff6c9
...@@ -805,9 +805,12 @@ faulthandler_sigfpe(PyObject *self, PyObject *args) ...@@ -805,9 +805,12 @@ faulthandler_sigfpe(PyObject *self, PyObject *args)
PowerPC. Use volatile to disable compile-time optimizations. */ PowerPC. Use volatile to disable compile-time optimizations. */
volatile int x = 1, y = 0, z; volatile int x = 1, y = 0, z;
z = x / y; z = x / y;
/* if the division by zero didn't raise a SIGFPE, raise it manually */ /* if the division by zero didn't raise a SIGFPE (e.g. on PowerPC),
raise it manually */
raise(SIGFPE); raise(SIGFPE);
Py_RETURN_NONE; /* use z to make quiet a compiler warning, but this line
is never reached */
return PyLong_FromLong(z);
} }
static PyObject * static PyObject *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment