From 17840fa18ee1439e136ee555a637b623c6bfbda1 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 31 May 2017 14:33:43 +0200 Subject: [PATCH] configure: Detect mpz_powm_sec() when built with -Werror --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a3ab56fa4..ea09855ec 100644 --- a/configure.ac +++ b/configure.ac @@ -919,9 +919,9 @@ if test x$gmp = xtrue; then AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include "gmp.h"]], - [[void *x = mpz_powm_sec;]])], + [[void *x __attribute__((unused)); x = mpz_powm_sec;]])], [AC_MSG_RESULT([yes]); - AC_DEFINE([HAVE_MPZ_POWM_SEC], [], [have mpz_mown_sec()])], + AC_DEFINE([HAVE_MPZ_POWM_SEC], [], [have mpz_powm_sec()])], [AC_MSG_RESULT([no])] ) else