[Gmp-commit] /var/hg/gmp: mini-gmp/tests: Close files and avoid prototypes wa...

mercurial at gmplib.org mercurial at gmplib.org
Sun Mar 15 19:39:39 CET 2026


details:   /var/hg/gmp/rev/28bab752af0d
changeset: 18501:28bab752af0d
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sun Mar 15 19:39:27 2026 +0100
description:
mini-gmp/tests: Close files and avoid prototypes warnings.

diffstat:

 mini-gmp/tests/t-mpq_addsub.c |  2 +-
 mini-gmp/tests/t-mpq_str.c    |  2 ++
 mini-gmp/tests/t-str.c        |  2 ++
 3 files changed, 5 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 6cc661f5e7ff -r 28bab752af0d mini-gmp/tests/t-mpq_addsub.c
--- a/mini-gmp/tests/t-mpq_addsub.c	Sun Mar 15 13:29:47 2026 +0100
+++ b/mini-gmp/tests/t-mpq_addsub.c	Sun Mar 15 19:39:27 2026 +0100
@@ -47,7 +47,7 @@
 }
 
 void
-testcmpui ()
+testcmpui (void)
 {
   unsigned d1, d2, n1, n2;
   mpq_t q1, q2;
diff -r 6cc661f5e7ff -r 28bab752af0d mini-gmp/tests/t-mpq_str.c
--- a/mini-gmp/tests/t-mpq_str.c	Sun Mar 15 13:29:47 2026 +0100
+++ b/mini-gmp/tests/t-mpq_str.c	Sun Mar 15 19:39:27 2026 +0100
@@ -260,4 +260,6 @@
     }
   mpq_clear (a);
   mpq_clear (b);
+
+  fclose (tmp);
 }
diff -r 6cc661f5e7ff -r 28bab752af0d mini-gmp/tests/t-str.c
--- a/mini-gmp/tests/t-str.c	Sun Mar 15 13:29:47 2026 +0100
+++ b/mini-gmp/tests/t-str.c	Sun Mar 15 19:39:27 2026 +0100
@@ -329,4 +329,6 @@
     }
   mpz_clear (a);
   mpz_clear (b);
+
+  fclose (tmp);
 }


More information about the gmp-commit mailing list