Re: [AD] Allegro 4.2 doesn't compile under OpenWatcom 1.0

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Roberto Alfonso wrote:

Matthew Leverton wrote:

Version 1.3 is the most recent, but I don't have it. Is Allegro known
to compile on that?


CVS version compiles fine with these warnings (I don't believe patching it
so that it builds flawlessly is that difficult):

obj/watcom/runner.exe wcc386 \\ src/dos/wss.c @ -dALLEGRO_SRC -DDEBUGMODE=1 -w1 -bt=dos4g -5s -s -d2 -zq -fr=nul -I. -I./include -fo=obj/watcom/alld/wss.obj
src\dos\wss.c(282): Warning! W1181: Parameter 3, sign specifier mismatch
src\dos\wss.c(282): Note! N2003: source conversion type is 'long *'
src\dos\wss.c(282): Note! N2004: target conversion type is 'unsigned long *' src\dos\wss.c(282): Note! N2002: '_dma_allocate_mem' defined in: .\include\allegro/platform/aintdos.h(169)


Applied the following patch. Should not break anything and should fix the warning.


Index: src/dos/wss.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/dos/wss.c,v
retrieving revision 1.10
diff -u -r1.10 wss.c
--- src/dos/wss.c       20 Jan 2005 19:16:03 -0000      1.10
+++ src/dos/wss.c       21 Apr 2005 08:52:42 -0000
@@ -144,7 +144,7 @@
static int wss_stereo = TRUE;
static int wss_16bits = TRUE;
static int wss_dma_sel;
-static long wss_dma_addr;
+static unsigned long wss_dma_addr;
static int wss_dma_block;
static int wss_in_use = FALSE;
static int wss_detected = FALSE;





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/