From: Michael Jeanson Date: Mon, 4 Oct 2021 18:56:43 +0000 (-0400) Subject: fix: explicitly disable '-Wsuggest-attribute=format' X-Git-Tag: v2.0.5~22 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=a800e79ba9fcd6c1a8ae3424462fd68960ba5bd4 fix: explicitly disable '-Wsuggest-attribute=format' Some older GCC version seems to enable '-Wsuggest-attribute=format' with '-Wall' which results in unwanted warnings. Fixing this would require modifications to the public headers which were done in the master branch. As a fix for this stable branch, explicitly disable this warning if the compiler supports it. Change-Id: Ic71a9d0986c6f3d1eae561b15c8ffad54773e825 Signed-off-by: Michael Jeanson --- diff --git a/configure.ac b/configure.ac index c5a5d704..bae98c5e 100644 --- a/configure.ac +++ b/configure.ac @@ -726,6 +726,7 @@ AX_COMPILER_FLAGS( dnl dnl Ref: https://github.com/swig/swig/issues/1259 -Wno-cast-function-type dnl + -Wno-suggest-attribute=format dnl ]) # CFLAGS from AX_COMPILER_FLAGS.