Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/acinclude.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/acinclude.m4 b/m4/acinclude.m4
index e601f0ed..294507e2 100644
--- a/m4/acinclude.m4
+++ b/m4/acinclude.m4
@@ -114,6 +114,10 @@ AC_DEFUN([CFLAGS_ADD],
[AS_VAR_PUSHDEF([my_cflags], [cflags_cv_warn_$1])dnl
AC_CACHE_CHECK([whether compiler handles $1], [my_cflags], [
save_CFLAGS="$CFLAGS"
+ CFLAGS="${CFLAGS} -Werror=unknown-warning-option"
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
+ [],
+ [CFLAGS="$save_CFLAGS"])
CFLAGS="${CFLAGS} $1"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[AS_VAR_SET([my_cflags], [yes])],