summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2023-02-20 17:38:49 +0100
committerGitHub <noreply@github.com>2023-02-20 17:38:49 +0100
commit4ae3f2248d8c850dd6b3593e9615c71226065337 (patch)
tree0587956a7b5543dd7722c2a2edaac932502b67f8
parentb834394b4e1e7a9110d35fc71e59c566d9cf66b3 (diff)
parent9a9c6c2f1af3416060363e3bef1cf7a81aed1dc1 (diff)
downloadautoconf-archive-4ae3f2248d8c850dd6b3593e9615c71226065337.tar.gz
Merge pull request #268 from omoerbeek/master
ax_check_sign: 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\"" ])
])