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
http://bugs.winehq.org/show_bug.cgi?id=16739
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #1 from Austin English austinenglish@gmail.com 2009-01-09 20:23:12 --- Fixed by 13df062d3686a9b1961f0877aa8aaccd1fdc7332.
http://bugs.winehq.org/show_bug.cgi?id=16739
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org 2009-01-16 10:39:36 --- Closing bugs fixed in 1.1.13.
http://bugs.winehq.org/show_bug.cgi?id=16739
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|Macintosh |ppc32