[pypy-commit] cffi default: gcc complains if given the obscure flag "-Werror=declaration-after-statement"
arigo
noreply at buildbot.pypy.org
Tue Mar 3 18:14:35 CET 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1656:9ee016c3276b
Date: 2015-03-03 18:14 +0100
http://bitbucket.org/cffi/cffi/changeset/9ee016c3276b/
Log: gcc complains if given the obscure flag "-Werror=declaration-after-
statement"
diff --git a/c/malloc_closure.h b/c/malloc_closure.h
--- a/c/malloc_closure.h
+++ b/c/malloc_closure.h
@@ -125,6 +125,7 @@
if (item == NULL)
return;
#else
+ {
int prot = PROT_READ | PROT_WRITE | PROT_EXEC;
if (is_emutramp_enabled ())
prot &= ~PROT_EXEC;
@@ -136,6 +137,7 @@
0);
if (item == (void *)MAP_FAILED)
return;
+ }
#endif
#ifdef MALLOC_CLOSURE_DEBUG
More information about the pypy-commit
mailing list