Kaydet (Commit) bdb87236 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix pragma GCC diagnostic checks

Change-Id: I2967db165e3faed316628e5d538a1928474ece84
üst 34173da0
...@@ -5565,7 +5565,7 @@ if test "$GCC" = "yes"; then ...@@ -5565,7 +5565,7 @@ if test "$GCC" = "yes"; then
AC_MSG_CHECKING( AC_MSG_CHECKING(
[whether $CC supports pragma GCC diagnostic error/ignored/warning]) [whether $CC supports pragma GCC diagnostic error/ignored/warning])
save_CFLAGS=$CFLAGS save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror -Wunused" CFLAGS="$CFLAGS -Werror -Wunknown-pragmas -Wunused-parameter"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-parameter"
void dummy(int n) {} void dummy(int n) {}
...@@ -5577,7 +5577,7 @@ if test "$GCC" = "yes"; then ...@@ -5577,7 +5577,7 @@ if test "$GCC" = "yes"; then
AC_MSG_CHECKING([whether $CC supports pragma GCC diagnostic push/pop]) AC_MSG_CHECKING([whether $CC supports pragma GCC diagnostic push/pop])
save_CFLAGS=$CFLAGS save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror -Wunused" CFLAGS="$CFLAGS -Werror -Wunknown-pragmas -Wunused-parameter"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-parameter"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment