From 551a30171d30ce75e276c988dcb7dc499f60cbbc Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Sun, 5 Oct 2008 09:28:11 +0000 Subject: Fix function prototypes decl in check_func to avoid warning with -Wstrict-prototypes. --- numpy/distutils/command/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/distutils/command') 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") -- cgit v1.2.1