Module: kamailio Branch: master Commit: 982cc452c3ac80a38b562bc8d06159c8423ec18b URL: https://github.com/kamailio/kamailio/commit/982cc452c3ac80a38b562bc8d06159c8423ec18b
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2017-01-12T17:16:50+01:00 app_python: fix compiler warning > 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. --- Modified: src/modules/app_python/Makefile --- Diff: https://github.com/kamailio/kamailio/commit/982cc452c3ac80a38b562bc8d06159c8423ec18b.diff Patch: https://github.com/kamailio/kamailio/commit/982cc452c3ac80a38b562bc8d06159c8423ec18b.patch --- diff --git a/src/modules/app_python/Makefile b/src/modules/app_python/Makefile index d1854c12e4..02f5fff664 100644 --- a/src/modules/app_python/Makefile +++ b/src/modules/app_python/Makefile @@ -22,6 +22,8 @@ ifeq ($(OS), freebsd) LIBS+=-pthread endif +# python2 https://www.python.org/dev/peps/pep-3123/ +DEFS+=-fno-strict-aliasing DEFS+=-I${PYTHON_INCDIR} DEFS+=-DKAMAILIO_MOD_INTERFACE _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev