diff options
author | Etienne Dechamps <[email protected]> | 2013-02-24 12:42:28 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-02-24 10:20:28 -0800 |
commit | d75af3c0ebb4e31ece087aeecfeff282cb6f1361 (patch) | |
tree | 6435d2801ea43ce7c4bed6b36d4d962deb3d2417 /config/kernel.m4 | |
parent | 546c978bbd3f132a88609cab15ec0e954eaa62b8 (diff) |
Use -Werror for all kernel configure tests.
As a matter of fact, we're already using -Werror for most tests because
of a bug in kernel-bio-empty-barrier.m4 which sets -Werror without
reverting it afterwards. This meant that all tests which ran after this
one was using -Werror.
This patch simply makes it clear that we're using -Werror and makes
the code more readable and more predictable.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1317
Diffstat (limited to 'config/kernel.m4')
-rw-r--r-- | config/kernel.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4 index 6d28074d0..5623785fb 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -488,7 +488,7 @@ AC_DEFUN([ZFS_LINUX_COMPILE_IFELSE], [ modpost_flag='' test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage AS_IF( - [AC_TRY_COMMAND(cp conftest.c build && make [$2] -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag) >/dev/null && AC_TRY_COMMAND([$3])], + [AC_TRY_COMMAND(cp conftest.c build && make [$2] -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag) >/dev/null && AC_TRY_COMMAND([$3])], [$4], [_AC_MSG_LOG_CONFTEST m4_ifvaln([$5],[$5])] ) |