[pypy-svn] r73206 - in pypy/branch/cpython-extension/pypy/module/cpyext: . test
afa at codespeak.net
afa at codespeak.net
Wed Mar 31 14:10:46 CEST 2010
Author: afa
Date: Wed Mar 31 14:10:43 2010
New Revision: 73206
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/api.py
pypy/branch/cpython-extension/pypy/module/cpyext/test/test_cpyext.py
Log:
Treats the "implicit-function-declaration" warning as an error on win32 as well
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/api.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/api.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/api.py Wed Mar 31 14:10:43 2010
@@ -582,7 +582,10 @@
kwds = {}
export_symbols_eci = export_symbols[:]
- if sys.platform != "win32":
+ if sys.platform == "win32":
+ # '%s' undefined; assuming extern returning int
+ kwds["compile_extra"] = ["/we4013"]
+ else:
kwds["compile_extra"] = ["-Werror=implicit-function-declaration"]
if build_bridge:
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/test/test_cpyext.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/test/test_cpyext.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/test/test_cpyext.py Wed Mar 31 14:10:43 2010
@@ -74,6 +74,8 @@
api_library = state.api_lib
if sys.platform == 'win32':
kwds["libraries"] = [api_library]
+ # '%s' undefined; assuming extern returning int
+ kwds["compile_extra"] = ["/we4013"]
else:
kwds["link_files"] = [str(api_library + '.so')]
kwds["compile_extra"] = ["-Werror=implicit-function-declaration"]
More information about the Pypy-commit
mailing list