From: Peter van Dijk Date: Tue, 13 Sep 2022 13:07:28 +0000 (+0200) Subject: make builds pass with -Werror on _my_ system X-Git-Tag: dnsdist-1.8.0-rc1~211^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25e210038fac0ab21a50f9bfc79c8fb6f9ed3f11;p=thirdparty%2Fpdns.git make builds pass with -Werror on _my_ system --- diff --git a/m4/ax_check_sign.m4 b/m4/ax_check_sign.m4 index acc12624ed..a6b5e57785 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) @:>@ ]])], + [[ [[maybe_unused]] int foo @<:@ 1 - 2 * !((($1) -1) < 0) @:>@ ]])], [ eval "ax_cv_decl_${typename}_signed=\"yes\"" ], [ eval "ax_cv_decl_${typename}_signed=\"no\"" ]) ]) diff --git a/m4/ax_cxx_compile_stdcxx.m4 b/m4/ax_cxx_compile_stdcxx.m4 index 43087b2e68..2aef96dd5b 100644 --- a/m4/ax_cxx_compile_stdcxx.m4 +++ b/m4/ax_cxx_compile_stdcxx.m4 @@ -595,8 +595,7 @@ namespace cxx17 namespace test_constexpr_lambdas { - - constexpr int foo = [](){return 42;}(); + [[maybe_unused]] constexpr int foo = [](){return 42;}(); }