From b35ec29927fd4f8e1852ad260b624d0214fc2886 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 7 Nov 2013 03:31:24 +0100 Subject: [PATCH] * acinclude.m4: Use -Werror on parameter tests. * configure.ac: Likewise. --- ChangeLog | 5 +++++ acinclude.m4 | 2 +- configure.ac | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 10f9fb282..dc18000f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-07 Vladimir Serbinenko + + * acinclude.m4: Use -Werror on parameter tests. + * configure.ac: Likewise. + 2013-11-07 Vladimir Serbinenko * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests. diff --git a/acinclude.m4 b/acinclude.m4 index fd09aad52..3d6ffb908 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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 diff --git a/configure.ac b/configure.ac index 081bbdde4..338e267e3 100644 --- a/configure.ac +++ b/configure.ac @@ -389,7 +389,7 @@ AC_SUBST([LIBUTIL]) AC_CACHE_CHECK([whether -Wtrampolines work], [grub_cv_host_cc_wtrampolines], [ SAVED_CFLAGS="$CFLAGS" - CFLAGS="$HOST_CFLAGS -Wtrampolines" + CFLAGS="$HOST_CFLAGS -Wtrampolines -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include int va_arg_func (int fixed, va_list args);]], [[]])], [grub_cv_host_cc_wtrampolines=yes], @@ -479,14 +479,14 @@ TARGET_CCASFLAGS="$TARGET_CCASFLAGS -g" # Force no alignment to save space on i386. if test "x$target_cpu" = xi386; then AC_CACHE_CHECK([whether -falign-loops works], [grub_cv_cc_falign_loop], [ - CFLAGS="$TARGET_CFLAGS -falign-loops=1" + CFLAGS="$TARGET_CFLAGS -falign-loops=1 -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], [grub_cv_cc_falign_loop=yes], [grub_cv_cc_falign_loop=no]) ]) AC_CACHE_CHECK([whether -malign-loops works], [grub_cv_cc_malign_loop], [ - CFLAGS="$TARGET_CFLAGS -malign-loops=1" + CFLAGS="$TARGET_CFLAGS -malign-loops=1 -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], [grub_cv_cc_malign_loop=yes], [grub_cv_cc_malign_loop=no])