diff options
author | Armin Rigo <arigo@tunes.org> | 2015-03-03 18:14:59 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-03-03 18:14:59 +0100 |
commit | 4e36e3c1c009ff4799db9f58f84a655981347eb3 (patch) | |
tree | 77f1bba43bc971c75eddb4a6ed31b7d5d11108f6 /c/malloc_closure.h | |
parent | 2c9b50427aeb74960811eb77f7f873f3d7751081 (diff) | |
download | cffi-4e36e3c1c009ff4799db9f58f84a655981347eb3.tar.gz |
gcc complains if given the obscure flag "-Werror=declaration-after-statement"
Diffstat (limited to 'c/malloc_closure.h')
-rw-r--r-- | c/malloc_closure.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/c/malloc_closure.h b/c/malloc_closure.h index ab4e073..bebb93d 100644 --- a/c/malloc_closure.h +++ b/c/malloc_closure.h @@ -125,6 +125,7 @@ static void more_core(void) if (item == NULL) return; #else + { int prot = PROT_READ | PROT_WRITE | PROT_EXEC; if (is_emutramp_enabled ()) prot &= ~PROT_EXEC; @@ -136,6 +137,7 @@ static void more_core(void) 0); if (item == (void *)MAP_FAILED) return; + } #endif #ifdef MALLOC_CLOSURE_DEBUG |