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-exp.c | 2 +- math/atest-exp2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'math') diff --git a/math/atest-exp.c b/math/atest-exp.c index ebacff594d..cde4019814 100644 --- a/math/atest-exp.c +++ b/math/atest-exp.c @@ -61,7 +61,7 @@ exp_mpn (mp1 ex, mp1 x) unsigned n; mp1 xp; mp2 tmp; - mp_limb_t chk; + mp_limb_t chk __attribute__ ((unused)); mp1 tol; memset (xp, 0, sizeof (mp1)); 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 v1.2.3-65-gdbad