fix: explicitly disable '-Wsuggest-attribute=format'
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 4 Oct 2021 18:56:43 +0000 (14:56 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 4 Oct 2021 19:01:34 +0000 (15:01 -0400)
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 <mjeanson@efficios.com>
configure.ac

index c5a5d70478db84a096739ec583dadbd42c77733e..bae98c5e926e4392c5761130f2678b9ac3185823 100644 (file)
@@ -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.
This page took 0.025163 seconds and 4 git commands to generate.