From 67ce756361aa64f41deac3705e0dd861f7e89a02 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Wed, 16 Mar 2022 10:46:33 -0400 Subject: [PATCH] Clean-up: silence warnings for generated code on RHEL8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit lttng_wrap.lo -MD -MP -MF .deps/lttng_wrap.Tpo -c lttng_wrap.c -fPIC -DPIC -o .libs/lttng_wrap.o lttng_wrap.c:1824:23: warning: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’} [-Wcast-function-type] {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, ^ Change-Id: I9258a58317814fdc94c8ce3c76e615b73aaf4199 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- extras/bindings/swig/python/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extras/bindings/swig/python/Makefile.am b/extras/bindings/swig/python/Makefile.am index 8eea69f32..a8fd56d80 100644 --- a/extras/bindings/swig/python/Makefile.am +++ b/extras/bindings/swig/python/Makefile.am @@ -12,6 +12,8 @@ AM_CFLAGS += -Wno-shadow AM_CFLAGS += -Wno-missing-field-initializers +AM_CFLAGS += -Wno-cast-function-type + AM_CPPFLAGS += $(PYTHON_INCLUDE) EXTRA_DIST = lttng.i.in -- 2.34.1