Message ID | 2d8ac5eb7a7e72e0877cca2b3705eebeaf5526e7.1421310394.git.mjt@msgid.tls.msk.ru |
---|---|
State | New |
Headers | show |
diff --git a/translate-all.c b/translate-all.c index 8fa4378..687ba7d 100644 --- a/translate-all.c +++ b/translate-all.c @@ -276,14 +276,14 @@ bool cpu_restore_state(CPUState *cpu, uintptr_t retaddr) } #ifdef _WIN32 -static inline void map_exec(void *addr, long size) +static __attribute__((unused)) void map_exec(void *addr, long size) { DWORD old_protect; VirtualProtect(addr, size, PAGE_EXECUTE_READWRITE, &old_protect); } #else -static inline void map_exec(void *addr, long size) +static __attribute__((unused)) void map_exec(void *addr, long size) { unsigned long start, end, page_size;