summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-08-03 13:23:53 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-08-03 13:23:53 +0000
commit95077b085adbb703b84839b146e2293443a0ce29 (patch)
tree0c344bf4f0a3cab8207c2d78b3c1afdb682d1d6f
parentf8f5c6bedf76ceef1c50e3f99730d5293b15a95b (diff)
downloadmpfr-95077b085adbb703b84839b146e2293443a0ce29.tar.gz
[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
-rw-r--r--tests/tget_flt.c2
1 files changed, 2 insertions, 0 deletions
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)