X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=configure.ac;h=79d98950d661d175755f782a2930bea6167726c8;hb=3baf7da04dd683c808b0f478cf2322c79766778b;hp=9e95aee537b5d0f98ea681424c8e53a965b7b7da;hpb=3db793e7f1a553587e96efdc6e063837f5ff93c5;p=babeltrace.git diff --git a/configure.ac b/configure.ac index 9e95aee5..79d98950 100644 --- a/configure.ac +++ b/configure.ac @@ -673,6 +673,19 @@ AX_COMPILER_FLAGS( -Wno-format-nonliteral dnl -Wno-double-promotion dnl -Wno-cast-align dnl + dnl + dnl Some versions of SWIG (like 3.0.12) generate code that produces + dnl -Wcast-function-type warnings. This warning is present in gcc >= 8. This + dnl combo happens on RHEL/Centos 8, for example. Later versions of SWIG (like + dnl 4.0.1) have the correct function signatures to not produce this warning. + dnl It's simpler to just disable the warning globally. + dnl + dnl Note that the Debian/Ubuntu SWIG package 3.0.12-2 contains a local patch to + dnl fix this (python-fix-function-cast-warnings.patch), so you won't be able to + dnl reproduce the warning using that package. + dnl + dnl Ref: https://github.com/swig/swig/issues/1259 + -Wno-cast-function-type dnl ]) # CFLAGS from AX_COMPILER_FLAGS.