Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit