mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-03 01:17:46 +03:00
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:
parent
c127a80fc6
commit
23c0061ccb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user