diff options
author | David Cournapeau <cournape@gmail.com> | 2008-10-05 09:28:11 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-10-05 09:28:11 +0000 |
commit | 551a30171d30ce75e276c988dcb7dc499f60cbbc (patch) | |
tree | df53826e2ef7861c01923a5f44ca6a55ec5a9244 /numpy/distutils/command/config.py | |
parent | 03287a66b449cc8fa8b1957fbb85f575c0e4a821 (diff) | |
download | numpy-551a30171d30ce75e276c988dcb7dc499f60cbbc.tar.gz |
Fix function prototypes decl in check_func to avoid warning with -Wstrict-prototypes.
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index 5170bfcb0..60900f721 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -125,7 +125,7 @@ int main() self._check_compiler() body = [] if decl: - body.append("int %s ();" % func) + body.append("int %s (void);" % func) # Handle MSVC intrisincs: force MS compiler to make a function call. # Useful to test for some functions when built with optimization on, to # avoid build error because the intrisinc and our 'fake' test @@ -179,7 +179,7 @@ int main() if decl: for f, v in decl.items(): if v: - body.append("int %s ();" % f) + body.append("int %s (void);" % f) # Handle MS intrinsics. See check_func for more info. body.append("#ifdef _MSC_VER") |