summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/tconst_log2.c2
-rw-r--r--tests/tests.c2
-rw-r--r--tests/texp.c2
-rw-r--r--tests/tget_d.c4
-rw-r--r--tests/tget_d_2exp.c2
-rw-r--r--tests/tget_ld_2exp.c2
-rw-r--r--tests/tget_set_d64.c2
-rw-r--r--tests/tgmpop.c2
-rw-r--r--tests/toutimpl.c3
-rw-r--r--tests/tpow.c4
-rw-r--r--tests/tset.c2
-rw-r--r--tests/tset_sj.c10
-rw-r--r--tests/tsi_op.c2
-rw-r--r--tests/tsin.c2
-rw-r--r--tests/tstrtofr.c5
15 files changed, 26 insertions, 20 deletions
diff --git a/tests/tconst_log2.c b/tests/tconst_log2.c
index 1a59c3276..a48614cb9 100644
--- a/tests/tconst_log2.c
+++ b/tests/tconst_log2.c
@@ -90,7 +90,7 @@ check_large (void)
}
static void
-check_cache ()
+check_cache (void)
{
mpfr_t x;
int i;
diff --git a/tests/tests.c b/tests/tests.c
index 1509a0231..5906e0682 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -277,7 +277,7 @@ tests_rand_end (void)
/* initialization function for tests using the hardware floats
Not very useful now. */
void
-mpfr_test_init ()
+mpfr_test_init (void)
{
double d;
#ifdef HAVE_FPC_CSR
diff --git a/tests/texp.c b/tests/texp.c
index 7baaf2f11..47d2c93b2 100644
--- a/tests/texp.c
+++ b/tests/texp.c
@@ -219,7 +219,7 @@ check_large (void)
#include "tgeneric.c"
static void
-check_special ()
+check_special (void)
{
mpfr_t x, y, z;
mp_exp_t emin, emax;
diff --git a/tests/tget_d.c b/tests/tget_d.c
index d5fe70b9a..f19929ffb 100644
--- a/tests/tget_d.c
+++ b/tests/tget_d.c
@@ -27,7 +27,7 @@ MA 02110-1301, USA. */
#include "mpfr-test.h"
static int
-check_denorms ()
+check_denorms (void)
{
mp_rnd_t rnd_mode;
mpfr_t x;
@@ -70,7 +70,7 @@ check_denorms ()
}
static void
-check_inf_nan ()
+check_inf_nan (void)
{
/* only if nans and infs are available */
#if _GMP_IEEE_FLOATS
diff --git a/tests/tget_d_2exp.c b/tests/tget_d_2exp.c
index b1bbe3f83..8f107aa9a 100644
--- a/tests/tget_d_2exp.c
+++ b/tests/tget_d_2exp.c
@@ -78,7 +78,7 @@ check_round (void)
static void
-check_inf_nan ()
+check_inf_nan (void)
{
/* only if nans and infs are available */
#if _GMP_IEEE_FLOATS
diff --git a/tests/tget_ld_2exp.c b/tests/tget_ld_2exp.c
index b5ee70ca7..d7ef40af0 100644
--- a/tests/tget_ld_2exp.c
+++ b/tests/tget_ld_2exp.c
@@ -78,7 +78,7 @@ check_round (void)
static void
-check_inf_nan ()
+check_inf_nan (void)
{
/* only if nans and infs are available */
#if _GMP_IEEE_FLOATS
diff --git a/tests/tget_set_d64.c b/tests/tget_set_d64.c
index 9714dd23f..97784f469 100644
--- a/tests/tget_set_d64.c
+++ b/tests/tget_set_d64.c
@@ -49,7 +49,7 @@ print_decimal64 (_Decimal64 d)
}
static void
-check_inf_nan ()
+check_inf_nan (void)
{
mpfr_t x, y;
_Decimal64 d;
diff --git a/tests/tgmpop.c b/tests/tgmpop.c
index 1f20b6d08..904be8294 100644
--- a/tests/tgmpop.c
+++ b/tests/tgmpop.c
@@ -127,7 +127,7 @@ special (void)
}
static void
-check_for_zero ()
+check_for_zero (void)
{
/* Check that 0 is unsigned! */
mpq_t q;
diff --git a/tests/toutimpl.c b/tests/toutimpl.c
index 54468da4f..5b035fca2 100644
--- a/tests/toutimpl.c
+++ b/tests/toutimpl.c
@@ -37,7 +37,8 @@ static const char Buffer[] =
"-0\n"
"0.10101010101011111001000110001100010000100000000000000E32\n";
-int main()
+int
+main (void)
{
mpfr_t x;
FILE *f;
diff --git a/tests/tpow.c b/tests/tpow.c
index 23be7f5fd..7e05c3362 100644
--- a/tests/tpow.c
+++ b/tests/tpow.c
@@ -347,7 +347,7 @@ check_pow_si (void)
}
static void
-check_special_pow_si ()
+check_special_pow_si (void)
{
mpfr_t a, b;
mp_exp_t emin;
@@ -475,7 +475,7 @@ check_inexact (mp_prec_t p)
}
static void
-special ()
+special (void)
{
mpfr_t x, y, z, t;
mp_exp_t emin, emax;
diff --git a/tests/tset.c b/tests/tset.c
index 38b77e404..4b02ea085 100644
--- a/tests/tset.c
+++ b/tests/tset.c
@@ -27,7 +27,7 @@ MA 02110-1301, USA. */
/* Maybe better create its own test file ? */
static void
-check_neg_special ()
+check_neg_special (void)
{
mpfr_t x;
mpfr_init (x);
diff --git a/tests/tset_sj.c b/tests/tset_sj.c
index 935b9a727..2fbe025fe 100644
--- a/tests/tset_sj.c
+++ b/tests/tset_sj.c
@@ -47,7 +47,11 @@ MA 02110-1301, USA. */
#include "mpfr-test.h"
#ifndef _MPFR_H_HAVE_INTMAX_T
-int main() { return 0; }
+int
+main (void)
+{
+ return 0;
+}
#else
#define ERROR(str) {printf("Error for "str"\n"); exit(1);}
@@ -150,7 +154,7 @@ check_set_uj_2exp (void)
}
static void
-check_set_sj ()
+check_set_sj (void)
{
mpfr_t x;
int inex;
@@ -171,7 +175,7 @@ check_set_sj ()
}
static void
-check_set_sj_2exp ()
+check_set_sj_2exp (void)
{
mpfr_t x;
int inex;
diff --git a/tests/tsi_op.c b/tests/tsi_op.c
index 1cbf0ab29..15c393801 100644
--- a/tests/tsi_op.c
+++ b/tests/tsi_op.c
@@ -50,7 +50,7 @@ const struct {
};
static void
-check_invert ()
+check_invert (void)
{
mpfr_t x;
mpfr_init2 (x, MPFR_PREC_MIN);
diff --git a/tests/tsin.c b/tests/tsin.c
index e96c71f16..f4ca49b64 100644
--- a/tests/tsin.c
+++ b/tests/tsin.c
@@ -204,7 +204,7 @@ check_nans (void)
const char xs[] = "0.111011111110110000111000001100000111110E-1";
static void
-check_regression ()
+check_regression (void)
{
mpfr_t x, y;
mp_prec_t p;
diff --git a/tests/tstrtofr.c b/tests/tstrtofr.c
index 55d237190..336d97e07 100644
--- a/tests/tstrtofr.c
+++ b/tests/tstrtofr.c
@@ -189,7 +189,8 @@ int randomab (int a, int b)
return a + rand () % (b-a);
}
-int main()
+int
+main (void)
{
int i, base;
mpfr_t x;
@@ -531,7 +532,7 @@ static struct dymmy_test {
};
static void
-check_reftable ()
+check_reftable (void)
{
int i, base;
mpfr_t x, y;