diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-25 15:04:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-25 15:04:31 +0100 |
commit | bdb87236dcbc1187b15e1a457e130ff997b0949b (patch) | |
tree | a342b046c81858dbb6d9b4d4eefbdb0c8d54e7b8 /configure.ac | |
parent | 34173da08ac40cc44130f0997ba4b66d2d4c4d08 (diff) |
Fix pragma GCC diagnostic checks
Change-Id: I2967db165e3faed316628e5d538a1928474ece84
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index ac433c840bd6..5397ed4bb7be 100644 --- a/configure.ac +++ b/configure.ac @@ -5565,7 +5565,7 @@ if test "$GCC" = "yes"; then AC_MSG_CHECKING( [whether $CC supports pragma GCC diagnostic error/ignored/warning]) save_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -Werror -Wunused" + CFLAGS="$CFLAGS -Werror -Wunknown-pragmas -Wunused-parameter" AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #pragma GCC diagnostic ignored "-Wunused-parameter" void dummy(int n) {} @@ -5577,7 +5577,7 @@ if test "$GCC" = "yes"; then AC_MSG_CHECKING([whether $CC supports pragma GCC diagnostic push/pop]) save_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -Werror -Wunused" + CFLAGS="$CFLAGS -Werror -Wunknown-pragmas -Wunused-parameter" AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" |