about summary refs log tree commit diff
path: root/math/libm-test.inc
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2014-12-30 14:11:13 -0500
committerChris Metcalf <cmetcalf@ezchip.com>2014-12-30 14:11:13 -0500
commit1ff950ad20111b591ad1312df4d802de9d1f1b1e (patch)
tree6634ad2285443326d46d32a27f5d0d568ea5452e /math/libm-test.inc
parent0f9dfe0432a90441be688f2776aa19fedbfcdcbb (diff)
downloadglibc-1ff950ad20111b591ad1312df4d802de9d1f1b1e.tar.gz
glibc-1ff950ad20111b591ad1312df4d802de9d1f1b1e.tar.xz
glibc-1ff950ad20111b591ad1312df4d802de9d1f1b1e.zip
Fix some warnings in the absence of FP round/exception support
Due to tile missing a bunch of FP exception and rounding
support, the tests generate warnings.  These changes fix the
warnings by just not compiling some unused functions, and
adding some attribute ((unused)) tags.
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r--math/libm-test.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index f86a4fa054..b44b2db7c9 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -590,6 +590,7 @@ print_complex_max_error (const char *func_name)
 }
 
 
+#if FE_ALL_EXCEPT
 /* Test whether a given exception was raised.  */
 static void
 test_single_exception (const char *test_name,
@@ -598,7 +599,7 @@ test_single_exception (const char *test_name,
 		       int fe_flag,
 		       const char *flag_name)
 {
-#ifndef TEST_INLINE
+# ifndef TEST_INLINE
   int ok = 1;
   if (exception & exc_flag)
     {
@@ -634,9 +635,9 @@ test_single_exception (const char *test_name,
   if (!ok)
     ++noErrors;
 
-#endif
+# endif
 }
-
+#endif
 
 /* Test whether exceptions given by EXCEPTION are raised.  Ignore thereby
    allowed but not required exceptions.