summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-05-20 16:04:22 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-05-20 16:04:22 +0000
commit6ef501f95870a5c6658c1fc861ad99ec2f74cffe (patch)
treec29cefe8efc089032bdb2c12c1a8647660e65ff9 /acinclude.m4
parentc25fedb3b01fe0297b936314d0726d690baca9ea (diff)
downloadmpfr-6ef501f95870a5c6658c1fc861ad99ec2f74cffe.tar.gz
[acinclude.m4] Replaced "main()" by "main (void)".
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9418 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 7baf16d6c..c01028510 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -170,7 +170,7 @@ if test -n "$GCC"; then
#include <fenv.h>
#endif
static double get_max (void);
-int main() {
+int main (void) {
double x = 0.5;
double y;
int i;
@@ -204,7 +204,7 @@ dnl Check if subnormal (denormalized) numbers are supported
AC_CACHE_CHECK([for subnormal numbers], mpfr_cv_have_denorms, [
AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdio.h>
-int main() {
+int main (void) {
double x = 2.22507385850720138309e-308;
fprintf (stderr, "%e\n", x / 2.0);
return 2.0 * (x / 2.0) != x;
@@ -222,7 +222,7 @@ dnl Check if signed zeros are supported. Note: the test will fail
dnl if the division by 0 generates a trap.
AC_CACHE_CHECK([for signed zeros], mpfr_cv_have_signedz, [
AC_RUN_IFELSE([AC_LANG_SOURCE([[
-int main() {
+int main (void) {
return 1.0 / 0.0 == 1.0 / -0.0;
}
]])],
@@ -241,7 +241,7 @@ dnl For the developers: to check whether all these tests are disabled,
dnl configure MPFR with "-DMPFR_TEST_DIVBYZERO=1 -DMPFR_ERRDIVZERO=1".
AC_CACHE_CHECK([if the FP division by 0 fails], mpfr_cv_errdivzero, [
AC_RUN_IFELSE([AC_LANG_SOURCE([[
-int main() {
+int main (void) {
volatile double d = 0.0, x;
x = 0.0 / d;
x = 1.0 / d;
@@ -269,7 +269,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#ifndef NAN
# define NAN (0.0/0.0)
#endif
-int main() {
+int main (void) {
double d;
d = NAN;
return d != d;
@@ -414,7 +414,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
#define MPFR_USE_THREAD_SAFE 1
#include "mpfr-thread.h"
MPFR_THREAD_ATTR int x = 17;
-int main() {
+int main (void) {
return x != 17;
}
]])],