summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/config.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-09-09 17:45:30 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-09-09 17:45:30 +0200
commitc0bba1ce75197a58a1d9f6ec8b13b5a09f18a558 (patch)
tree2aeb81eb528c5d0a8e853a1ee0a30290e5852233 /numpy/distutils/command/config.py
parent2c6937f4782e5947e6100941d1a291eb1d6f3d65 (diff)
downloadnumpy-c0bba1ce75197a58a1d9f6ec8b13b5a09f18a558.tar.gz
MAINT: make main a strict prototype in configure checks
removes about 400 lines of warnings from the build logs
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r--numpy/distutils/command/config.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py
index 4c407bee0..a0c9aaff7 100644
--- a/numpy/distutils/command/config.py
+++ b/numpy/distutils/command/config.py
@@ -173,7 +173,7 @@ Original exception was: %s, and the Compiler class was %s
headers=None, include_dirs=None):
self._check_compiler()
body = """
-int main()
+int main(void)
{
#ifndef %s
(void) %s;
@@ -188,7 +188,7 @@ int main()
headers=None, include_dirs=None):
self._check_compiler()
body = """
-int main()
+int main(void)
{
#if %s
#else
@@ -208,7 +208,7 @@ int main()
# First check the type can be compiled
body = r"""
-int main() {
+int main(void) {
if ((%(name)s *) 0)
return 0;
if (sizeof (%(name)s))
@@ -236,7 +236,7 @@ int main() {
# First check the type can be compiled
body = r"""
typedef %(type)s npy_check_sizeof_type;
-int main ()
+int main (void)
{
static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) >= 0)];
test_array [0] = 0
@@ -252,7 +252,7 @@ int main ()
if expected:
body = r"""
typedef %(type)s npy_check_sizeof_type;
-int main ()
+int main (void)
{
static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) == %(size)s)];
test_array [0] = 0
@@ -273,7 +273,7 @@ int main ()
# this fails to *compile* if size > sizeof(type)
body = r"""
typedef %(type)s npy_check_sizeof_type;
-int main ()
+int main (void)
{
static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) <= %(size)s)];
test_array [0] = 0