From 95077b085adbb703b84839b146e2293443a0ce29 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Tue, 3 Aug 2021 13:23:53 +0000 Subject: [tests/tget_flt.c] Avoid a warning about unused function equal_flt when HAVE_SUBNORM_FLT is not defined. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14558 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tget_flt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tget_flt.c b/tests/tget_flt.c index ac5020c57..62db12d88 100644 --- a/tests/tget_flt.c +++ b/tests/tget_flt.c @@ -25,6 +25,7 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-test.h" #include "ieee_floats.h" +#ifdef HAVE_SUBNORM_FLT /* return non-zero iff f == g, and if both are zero check the sign */ static int equal_flt (float f, float g) @@ -46,6 +47,7 @@ equal_flt (float f, float g) return !sf == !sg; } } +#endif int main (void) -- cgit v1.2.1