[Gmp-commit] /var/hg/gmp: Use return 0; instead of exit(0); so compilers won'...

mercurial at gmplib.org mercurial at gmplib.org
Mon Mar 31 20:33:10 UTC 2014


details:   /var/hg/gmp/rev/beda46a3c10d
changeset: 16364:beda46a3c10d
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Mon Mar 31 22:33:03 2014 +0200
description:
Use return 0; instead of exit(0); so compilers won't complain that exit is not declared.

diffstat:

 ChangeLog    |  3 +++
 acinclude.m4 |  8 ++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r c0353313902c -r beda46a3c10d ChangeLog
--- a/ChangeLog	Mon Mar 31 22:20:18 2014 +0200
+++ b/ChangeLog	Mon Mar 31 22:33:03 2014 +0200
@@ -2,6 +2,9 @@
 
 	* mpn/arm/dive_1.asm, mpn/arm/invert_limb.asm: Use RODATA.
 	* acinclude.m4 ([long long reliability tests]): Declare functions.
+	(GMP_PROG_CC_FOR_BUILD_WORKS, GMP_PROG_EXEEXT_FOR_BUILD,
+	GMP_C_FOR_BUILD_ANSI, GMP_CHECK_LIBM_FOR_BUILD): Replace exit(0) with
+	return 0, no declaration needed.
 
 2014-03-30  Marc Glisse  <marc.glisse at inria.fr>
 
diff -r c0353313902c -r beda46a3c10d acinclude.m4
--- a/acinclude.m4	Mon Mar 31 22:20:18 2014 +0200
+++ b/acinclude.m4	Mon Mar 31 22:33:03 2014 +0200
@@ -3817,7 +3817,7 @@
 int
 main ()
 {
-  exit(0);
+  return 0;
 }
 EOF
 gmp_compile="$1 conftest.c"
@@ -3891,7 +3891,7 @@
 int
 main ()
 {
-  exit (0);
+  return 0;
 }
 EOF
 for i in .exe ,ff8 ""; do
@@ -3927,7 +3927,7 @@
 int
 main (int argc, char **argv)
 {
-  exit(0);
+  return 0;
 }
 EOF
 gmp_compile="$CC_FOR_BUILD conftest.c"
@@ -3961,7 +3961,7 @@
 int
 main ()
 {
-  exit(0);
+  return 0;
 }
 double d;
 double


More information about the gmp-commit mailing list