From 4124994771e8fe54557a7af85e2af9c68e6ea2a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 27 Feb 2013 19:59:09 +0100 Subject: [PATCH] tests: Avoid missing missing-prototype warning with on glibc 2.17. * test-suite/standalone/test-round.c: Avoid missing-prototype warning with on glibc 2.17. --- test-suite/standalone/test-round.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test-suite/standalone/test-round.c b/test-suite/standalone/test-round.c index f1458af29..150c8816e 100644 --- a/test-suite/standalone/test-round.c +++ b/test-suite/standalone/test-round.c @@ -25,7 +25,16 @@ #include #if HAVE_FENV_H -#include +# if defined __GNUC__ && defined __GLIBC__ +/* In Glibc 2.17, defines `feraiseexcept' as an inline + without declaring it first, so ignore the warning. */ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wmissing-prototypes" +# endif +# include +# if defined __GNUC__ && defined __GLIBC__ +# pragma GCC diagnostic pop +# endif #elif defined HAVE_MACHINE_FPU_H /* On Tru64 5.1b, the declaration of fesetround(3) is in . On NetBSD, this header has to be included along with . */