1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

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.
This commit is contained in:
Chris Metcalf
2014-12-30 14:11:13 -05:00
parent 0f9dfe0432
commit 1ff950ad20
7 changed files with 32 additions and 11 deletions

View File

@ -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.