summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@drijf.net>2022-11-30 09:34:08 +0100
committerOtto Moerbeek <otto@drijf.net>2022-11-30 09:34:08 +0100
commit9a9c6c2f1af3416060363e3bef1cf7a81aed1dc1 (patch)
tree2ba8073774c27799f4657e434ff349b4ce33d995
parentda89908ef7d82a90fe5dab8904a65869b5a5d996 (diff)
downloadautoconf-archive-9a9c6c2f1af3416060363e3bef1cf7a81aed1dc1.tar.gz
Avoid an unused warning
-rw-r--r--m4/ax_check_sign.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_check_sign.m4 b/m4/ax_check_sign.m4
index acc1262..d01258e 100644
--- a/m4/ax_check_sign.m4
+++ b/m4/ax_check_sign.m4
@@ -43,7 +43,7 @@ AC_DEFUN([AX_CHECK_SIGN], [
AC_CACHE_CHECK([whether $1 is signed], ax_cv_decl_${typename}_signed, [
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[$4]],
- [[ int foo @<:@ 1 - 2 * !((($1) -1) < 0) @:>@ ]])],
+ [[ int foo @<:@ 1 - 2 * !((($1) -1) < 0) @:>@ ; (void)foo[0] ]])],
[ eval "ax_cv_decl_${typename}_signed=\"yes\"" ],
[ eval "ax_cv_decl_${typename}_signed=\"no\"" ])
])