From b4f518ecfad09fc4279ea26a565332835e403dab Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Tue, 15 Mar 2016 23:16:47 -0400 Subject: Fix building glibc master with NDEBUG and --with-cpu. When building on i686, x86_64, and arm, and with NDEBUG, or --with-cpu there are various variables and functions which are unused based on these settings. This patch marks all such variables with __attribute__((unused)) to avoid the compiler warnings when building with the aformentioned options. --- math/atest-exp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'math/atest-exp2.c') diff --git a/math/atest-exp2.c b/math/atest-exp2.c index 395b8f9365..8a9cc70073 100644 --- a/math/atest-exp2.c +++ b/math/atest-exp2.c @@ -87,7 +87,7 @@ exp_mpn (mp1 ex, mp1 x) unsigned int n; mp1 xp; mp2 tmp; - mp_limb_t chk; + mp_limb_t chk __attribute__ ((unused)); mp1 tol; memset (xp, 0, sizeof (mp1)); -- cgit 1.4.1