summaryrefslogtreecommitdiff
path: root/tests/tsqrt.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-07-31 14:06:34 +0000
committerthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-07-31 14:06:34 +0000
commitdb7a20d6421aacaae52fcda06352901ffe04586d (patch)
treee8cd61cfe4e4e386184881cb8cb0383a4d8805e3 /tests/tsqrt.c
parent108a70cc7c599d8a16d948ffc140a3db3ad76757 (diff)
downloadmpc-db7a20d6421aacaae52fcda06352901ffe04586d.tar.gz
Add void in empty prototype (remove warnings with gcc option '-Wold-style-definition'.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@166 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tsqrt.c')
-rw-r--r--tests/tsqrt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tsqrt.c b/tests/tsqrt.c
index 5997321..b5bc252 100644
--- a/tests/tsqrt.c
+++ b/tests/tsqrt.c
@@ -43,7 +43,7 @@ test_failed (mpc_t op, mpc_t get, mpc_t expected)
/* check special values as defined in C99 standard */
static void
-special ()
+special (void)
{
mpc_t z;
mpc_t t;
@@ -519,7 +519,7 @@ special ()
}
static void
-pure_real_argument ()
+pure_real_argument (void)
{
/* sqrt(x +i*0) = sqrt(x) +i*0, when x>0 */
/* sqrt(x -i*0) = sqrt(x) -i*0, when x>0 */
@@ -598,7 +598,7 @@ pure_real_argument ()
}
static void
-pure_imaginary_argument ()
+pure_imaginary_argument (void)
{
/* sqrt(+/-0 +i*y) = sqrt(y/2) * (1 +i), when y >0 */
/* sqrt(+/-0 +i*y) = sqrt(-y/2) * (-1 + i), when y < 0 */
@@ -675,7 +675,7 @@ pure_imaginary_argument ()
}
static void
-bugs_fixed ()
+bugs_fixed (void)
{
mpc_t z;
mpc_t sqrt_z;
@@ -722,7 +722,7 @@ bugs_fixed ()
}
int
-main()
+main (void)
{
test_start ();