diff options
author | Chris Metcalf <cmetcalf@ezchip.com> | 2014-12-30 14:11:13 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@ezchip.com> | 2014-12-30 14:11:13 -0500 |
commit | 1ff950ad20111b591ad1312df4d802de9d1f1b1e (patch) | |
tree | 6634ad2285443326d46d32a27f5d0d568ea5452e /stdlib/tst-strtod-underflow.c | |
parent | 0f9dfe0432a90441be688f2776aa19fedbfcdcbb (diff) | |
download | glibc-1ff950ad20111b591ad1312df4d802de9d1f1b1e.zip glibc-1ff950ad20111b591ad1312df4d802de9d1f1b1e.tar.gz glibc-1ff950ad20111b591ad1312df4d802de9d1f1b1e.tar.bz2 |
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 'stdlib/tst-strtod-underflow.c')
-rw-r--r-- | stdlib/tst-strtod-underflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/tst-strtod-underflow.c b/stdlib/tst-strtod-underflow.c index bc23741..82bb483 100644 --- a/stdlib/tst-strtod-underflow.c +++ b/stdlib/tst-strtod-underflow.c @@ -171,7 +171,7 @@ test_in_one_mode (const char *s, enum underflow_case c, int rm, static int do_test (void) { - int save_round_mode = fegetround (); + int save_round_mode __attribute__ ((unused)) = fegetround (); int result = 0; #ifdef FE_TONEAREST const int fe_tonearest = FE_TONEAREST; |