Add "-fno-strict-aliasing" to compilation flags
Fixes a slew of:
"dereferencing type-punned pointer will break strict-aliasing rules"
warnings from GCC for lines of the form:
Py_INCREF(Py_True);
and
Py_INCREF(Py_False);due to the cast from PyIntObject* to PyObject*
GCC is technically correct here; see:
http://www.python.org/dev/peps/pep-3123/
though this is unlikely to lead to non-working machine code.
https://github.com/kamailio/kamailio/pull/924
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.