Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 551a301

Browse files
committed
Fix function prototypes decl in check_func to avoid warning with -Wstrict-prototypes.
1 parent 03287a6 commit 551a301

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

numpy/distutils/command/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def check_func(self, func,
125125
self._check_compiler()
126126
body = []
127127
if decl:
128-
body.append("int %s ();" % func)
128+
body.append("int %s (void);" % func)
129129
# Handle MSVC intrisincs: force MS compiler to make a function call.
130130
# Useful to test for some functions when built with optimization on, to
131131
# avoid build error because the intrisinc and our 'fake' test
@@ -179,7 +179,7 @@ def check_funcs_once(self, funcs,
179179
if decl:
180180
for f, v in decl.items():
181181
if v:
182-
body.append("int %s ();" % f)
182+
body.append("int %s (void);" % f)
183183

184184
# Handle MS intrinsics. See check_func for more info.
185185
body.append("#ifdef _MSC_VER")

0 commit comments

Comments
 (0)