Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
PyPy
cffi
Commits
f93c1bd0d9a0
Commit
351f2efb
authored
Jul 09, 2015
by
Armin Rigo
Browse files
In non-C++ mode, we need a warning to be turned into an error
parent
d0e1c599a102
Changes
1
Hide whitespace changes
Inline
Side-by-side
testing/cffi1/test_recompiler.py
View file @
f93c1bd0
...
...
@@ -24,6 +24,9 @@ def verify(ffi, module_name, source, *args, **kwds):
if
1
:
# test the .cpp mode too
kwds
.
setdefault
(
'source_extension'
,
'.cpp'
)
source
=
'extern "C" {
\n
%s
\n
}'
%
(
source
,)
else
:
kwds
[
'extra_compile_args'
]
=
(
kwds
.
get
(
'extra_compile_args'
,
[])
+
[
'-Werror'
])
return
recompiler
.
_verify
(
ffi
,
module_name
,
source
,
*
args
,
**
kwds
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment