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:
@ -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.
|
||||
|
Reference in New Issue
Block a user