From a800e79ba9fcd6c1a8ae3424462fd68960ba5bd4 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 4 Oct 2021 14:56:43 -0400 Subject: [PATCH] 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 --- configure.ac | 1 + 1 file changed, 1 insertion(+) 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. -- 2.34.1