]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Don't use c++17 features 11951/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 14 Sep 2022 12:42:30 +0000 (14:42 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 14 Sep 2022 12:42:30 +0000 (14:42 +0200)
m4/ax_check_sign.m4

index a6b5e5778536fd50ac04a494361871c54fcb24ec..d01258e851b42816e6c126ed2b6a3c85c4fde578 100644 (file)
@@ -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]],
-       [[ [[maybe_unused]] 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\"" ])
  ])