[Numpy-svn] r5926 - trunk/numpy/distutils/command

numpy-svn@scip... numpy-svn@scip...
Sun Oct 5 04:28:15 CDT 2008


Author: cdavid
Date: 2008-10-05 04:28:11 -0500 (Sun, 05 Oct 2008)
New Revision: 5926

Modified:
   trunk/numpy/distutils/command/config.py
Log:
Fix function prototypes decl in check_func to avoid warning with -Wstrict-prototypes.

Modified: trunk/numpy/distutils/command/config.py
===================================================================
--- trunk/numpy/distutils/command/config.py	2008-10-05 09:02:11 UTC (rev 5925)
+++ trunk/numpy/distutils/command/config.py	2008-10-05 09:28:11 UTC (rev 5926)
@@ -125,7 +125,7 @@
         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 @@
         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")



More information about the Numpy-svn mailing list