http://bugs.winehq.org/show_bug.cgi?id=16739
Summary: kernel32/instr.c: initialization from incompatible pointer type Product: Wine Version: 1.1.12 Platform: Macintosh OS/Version: Linux Status: NEW Keywords: patch, source Severity: minor Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
austin@ubuntu-ppc:~/wine-git/dlls/kernel32$ make gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_KERNEL32_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith -g -O2 -o instr.o instr.c instr.c: In function ‘INSTR_vectored_handler’: instr.c:882: warning: initialization from incompatible pointer type
Looking at the code, looks x86 specific. Patch below fixes the compiler error, but this is pretty low level stuff, so I'll wait on comments before sending in.
diff --git a/dlls/kernel32/instr.c b/dlls/kernel32/instr.c index 73edf7b..398f3ea 100644 --- a/dlls/kernel32/instr.c +++ b/dlls/kernel32/instr.c @@ -876,6 +876,7 @@ DWORD __wine_emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT86 *context ) * Vectored exception handler used to emulate protected instructions * from 32-bit code. */ +#ifdef __i386__ LONG CALLBACK INSTR_vectored_handler( EXCEPTION_POINTERS *ptrs ) { EXCEPTION_RECORD *record = ptrs->ExceptionRecord; @@ -890,7 +891,7 @@ LONG CALLBACK INSTR_vectored_handler( EXCEPTION_POINTERS *ptrs ) } return EXCEPTION_CONTINUE_SEARCH; } - +#endif
/*********************************************************************** * INSTR_CallBuiltinHandler