diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-02-06 19:28:00 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-02-06 19:28:42 +0100 |
commit | b96f7bc26c92c400435144cd0f751820e67af33b (patch) | |
tree | 12764ae2ab7237cc2be7f8b1fb14986affd26527 /m4 | |
parent | 15bd7ceba1434b5d710bfd16078044f30693467b (diff) |
build-sys: don't use -Wstrict-prototypes with Gtk+ 2.0
Diffstat (limited to 'm4')
-rw-r--r-- | m4/spice-compile-warnings.m4 | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4 index 3c7e0d3..31fc0fc 100644 --- a/m4/spice-compile-warnings.m4 +++ b/m4/spice-compile-warnings.m4 @@ -1,7 +1,8 @@ -dnl -dnl Enable all known GCC compiler warnings, except for those -dnl we can't yet cope with -dnl +# SPICE_COMPILE_WARNINGS(DONTWARN) +# -------------------------------------------------------- +# Enable all known GCC compiler warnings, except for those +# we can't yet cope with +# AC_DEFUN([SPICE_COMPILE_WARNINGS],[ dnl ****************************** dnl More compiler warnings @@ -19,6 +20,8 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[ # List of warnings that are not relevant / wanted + dontwarn=$1 + # Don't care about C++ compiler compat dontwarn="$dontwarn -Wc++-compat" dontwarn="$dontwarn -Wabi" @@ -59,11 +62,6 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[ dontwarn="$dontwarn -Wbad-function-cast" dontwarn="$dontwarn -Wshadow" - # We want to enable thse, but need to sort out the - # decl mess with gtk/generated_*.c - dontwarn="$dontwarn -Wmissing-prototypes" - dontwarn="$dontwarn -Wmissing-declarations" - # Get all possible GCC warnings gl_MANYWARN_ALL_GCC([maybewarn]) |