From 1ff950ad20111b591ad1312df4d802de9d1f1b1e Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Tue, 30 Dec 2014 14:11:13 -0500 Subject: 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. --- stdio-common/tst-printf-round.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdio-common/tst-printf-round.c') diff --git a/stdio-common/tst-printf-round.c b/stdio-common/tst-printf-round.c index 5035ddae4c..6022edf26d 100644 --- a/stdio-common/tst-printf-round.c +++ b/stdio-common/tst-printf-round.c @@ -164,7 +164,7 @@ test_hex_in_one_mode (double d, const char *fmt, const char *const expected[4], static int do_test (void) { - int save_round_mode = fegetround (); + int save_round_mode __attribute__ ((unused)) = fegetround (); int result = 0; for (size_t i = 0; i < sizeof (dec_tests) / sizeof (dec_tests[0]); i++) -- cgit 1.4.1