diff options
author | Carlos O'Donell <carlos@redhat.com> | 2016-03-15 23:16:47 -0400 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2016-03-15 23:23:24 -0400 |
commit | b4f518ecfad09fc4279ea26a565332835e403dab (patch) | |
tree | 56d39c0f69cafc6afc02cc2e81292d37f69cb0b9 /math | |
parent | 089b772f98afd9eb6264c6489bc96a30bf6af4ac (diff) | |
download | glibc-b4f518ecfad09fc4279ea26a565332835e403dab.tar.gz glibc-b4f518ecfad09fc4279ea26a565332835e403dab.tar.xz glibc-b4f518ecfad09fc4279ea26a565332835e403dab.zip |
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.
Diffstat (limited to 'math')
-rw-r--r-- | math/atest-exp.c | 2 | ||||
-rw-r--r-- | math/atest-exp2.c | 2 |
2 files changed, 2 insertions, 2 deletions
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)); |