Disable -Wcast-function-type warning

Most glib function casts trigger this

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2018-07-27 11:47:49 +01:00
parent c127a80fc6
commit 23c0061ccb

View File

@ -35,6 +35,8 @@ AC_DEFUN([VIRT_VIEWER_COMPILE_WARNINGS],[
try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
# Removed -Wstrict-prototypes to avoid GTK bug
try_compiler_flags="$try_compiler_flags -Winline -Wredundant-decls -Wdeprecated-declarations -Wno-sign-compare"
# Remove as glib function casts hit
try_compiler_flags="$try_compiler_flags -Wno-cast-function-type"
if test "$enable_compile_warnings" = "error" ; then
try_compiler_flags="$try_compiler_flags -Werror"
fi