mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-28 07:06:04 +00:00
m4: Use -Wdeprecated-declarations
Let's enable deprecated-declarations warnings as we want to: 1) Avoid insert/maintain deprecated widgets/methods 2) Avoid adding widgets/methods that are too new, what could cause problems like virt-viewer not being able to build in a specific distro. Patches for making these two items possible are coming, introducing _VERSION_MAX_ALLOWED for both GLIB and GDK and removing (as much as possible) deprecated widgets/methods/structures. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
2c712a0525
commit
df403f5aba
@ -34,7 +34,7 @@ AC_DEFUN([VIRT_VIEWER_COMPILE_WARNINGS],[
|
|||||||
try_compiler_flags="$try_compiler_flags -Wall -Wmissing-prototypes -std=c99 -Wnested-externs -Wpointer-arith"
|
try_compiler_flags="$try_compiler_flags -Wall -Wmissing-prototypes -std=c99 -Wnested-externs -Wpointer-arith"
|
||||||
try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
|
try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
|
||||||
# Removed -Wstrict-prototypes to avoid GTK bug
|
# Removed -Wstrict-prototypes to avoid GTK bug
|
||||||
try_compiler_flags="$try_compiler_flags -Winline -Wredundant-decls -Wno-sign-compare -Wno-deprecated-declarations"
|
try_compiler_flags="$try_compiler_flags -Winline -Wredundant-decls -Wdeprecated-declarations -Wno-sign-compare"
|
||||||
if test "$enable_compile_warnings" = "error" ; then
|
if test "$enable_compile_warnings" = "error" ; then
|
||||||
try_compiler_flags="$try_compiler_flags -Werror"
|
try_compiler_flags="$try_compiler_flags -Werror"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user