diff options
author | Bruno Haible <bruno@clisp.org> | 2017-07-11 03:52:48 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-07-11 03:52:48 +0200 |
commit | f12a7bbb4acaaa72f48e452e04da2a4dd749a664 (patch) | |
tree | cee9b4cbce3af0160aa590836da05a170bdaa984 /m4/round.m4 | |
parent | 7f1ef184ab3d3ccd96e512feafdf6b120eb88db1 (diff) | |
download | gnulib-f12a7bbb4acaaa72f48e452e04da2a4dd749a664.tar.gz |
round, roundf: Avoid compiler warning in configure test.
* m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
* m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
Diffstat (limited to 'm4/round.m4')
-rw-r--r-- | m4/round.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/round.m4 b/m4/round.m4 index 45b7df4591..ede34b29d6 100644 --- a/m4/round.m4 +++ b/m4/round.m4 @@ -1,4 +1,4 @@ -# round.m4 serial 16 +# round.m4 serial 17 dnl Copyright (C) 2007, 2009-2017 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -57,7 +57,7 @@ int main() * (double) (1U << ((DBL_MANT_DIG + 3) / 5)) * (double) (1U << ((DBL_MANT_DIG + 4) / 5)); volatile double x = 0.5 - 0.5 / TWO_MANT_DIG; - exit (x < 0.5 && round (x) != 0.0); + return (x < 0.5 && round (x) != 0.0); }]])], [gl_cv_func_round_works=yes], [gl_cv_func_round_works=no], [case "$host_os" in netbsd* | aix*) gl_cv_func_round_works="guessing no";; |