diff options
author | Matt Turner <[email protected]> | 2015-02-27 11:42:43 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-02-27 16:57:10 -0800 |
commit | 76cd0f00f44c0935dc7d6a0e14e0515f08a8e1dc (patch) | |
tree | 9393af6cfd0160217bf4486880df23ec0de06264 /src/mapi/entry_x86_tls.h | |
parent | 982723dfa20386b40ab2876fb134217cba42a934 (diff) |
mapi: Don't rely on GNU void pointer arithmetic.
Commit 79daa510c added -Werror=pointer-arith to CFLAGS, which makes
arithmetic on void pointers an error.
See https://gcc.gnu.org/onlinedocs/gcc/Pointer-Arith.html
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mapi/entry_x86_tls.h')
-rw-r--r-- | src/mapi/entry_x86_tls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/entry_x86_tls.h b/src/mapi/entry_x86_tls.h index fa7bc15b890..df31dce55f1 100644 --- a/src/mapi/entry_x86_tls.h +++ b/src/mapi/entry_x86_tls.h @@ -113,7 +113,7 @@ entry_generate(int slot) 0xff, 0xa0, 0x34, 0x12, 0x00, 0x00, /* jmp *0x1234(%eax) */ 0x90, 0x90, 0x90, 0x90 /* nop's */ }; - void *code; + char *code; mapi_func entry; code = u_execmem_alloc(sizeof(code_templ)); |