* acinclude.m4: Use -Werror on parameter tests.

* configure.ac: Likewise.
This commit is contained in:
Vladimir Serbinenko 2013-11-07 03:31:24 +01:00
parent 05f3a0d754
commit b35ec29927
3 changed files with 9 additions and 4 deletions

View file

@ -391,7 +391,7 @@ AC_MSG_CHECKING([whether `$CC' accepts `-mstack-arg-probe'])
AC_LANG_CONFTEST([AC_LANG_SOURCE([[
void foo (void) { volatile char a[8]; a[3]; }
]])])
[if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then]
[if eval "$ac_compile -S -mstack-arg-probe -Werror -o conftest.s" 2> /dev/null; then]
AC_MSG_RESULT([yes])
[# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
rm -f conftest.s