aboutsummaryrefslogtreecommitdiff
path: root/math/test-fenvinline.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2015-07-10 16:11:40 -0400
committerChris Metcalf <cmetcalf@ezchip.com>2015-07-10 16:11:40 -0400
commit75413d4928d6b3cf4602e9251855b3fc53730abd (patch)
tree5561306b6a5d07959f32331f9ae65436fd0c3e9d /math/test-fenvinline.c
parent0c8f39cbf769ef35f54b57859e1e87b5291daf5e (diff)
downloadglibc-75413d4928d6b3cf4602e9251855b3fc53730abd.tar
glibc-75413d4928d6b3cf4602e9251855b3fc53730abd.tar.gz
glibc-75413d4928d6b3cf4602e9251855b3fc53730abd.tar.bz2
glibc-75413d4928d6b3cf4602e9251855b3fc53730abd.zip
math/test-fenvinline: avoid compiler warning
On tile (and any other machine with no FP exceptions) the feenable_test() function will generate a "function defined but not used" warning because all of the callers are commented out. We already were ifdef'ing out the body of the function, so instead just ifdef out the entire function if FE_ALL_EXCEPT == 0.
Diffstat (limited to 'math/test-fenvinline.c')
-rw-r--r--math/test-fenvinline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/test-fenvinline.c b/math/test-fenvinline.c
index b02cefd7f8..d196268045 100644
--- a/math/test-fenvinline.c
+++ b/math/test-fenvinline.c
@@ -200,11 +200,11 @@ test_fesetround (void)
#endif
}
+#if FE_ALL_EXCEPT
/* Tests for feenableexcept/fedisableexcept. */
static void
feenable_test (const char *flag_name, fexcept_t fe_exc)
{
-#if FE_ALL_EXCEPT
int fe_exci = fe_exc;
double fe_excd = fe_exc;
int excepts;
@@ -287,8 +287,8 @@ feenable_test (const char *flag_name, fexcept_t fe_exc)
flag_name, (unsigned int)fe_exc, excepts);
++count_errors;
}
-#endif
}
+#endif
static void
test_feenabledisable (void)