From: notaz Date: Sun, 30 Sep 2012 15:08:39 +0000 (+0300) Subject: random warning fixes X-Git-Tag: r2~3 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=commitdiff_plain;h=0d6a66c2a80f50ae51327cd406f9df14d99ad02e;hp=ebde7d27f12cb4e1002670fd481076fb9ba509ff random warning fixes --- diff --git a/Makefile.pandora b/Makefile.pandora index f35047e..ad56ca2 100644 --- a/Makefile.pandora +++ b/Makefile.pandora @@ -2,7 +2,8 @@ CC = $(CROSS_COMPILE)gcc AS = $(CROSS_COMPILE)as STRIP = $(CROSS_COMPILE)strip -TFLAGS = -Winline -Izlib -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT +TFLAGS += -Winline -Izlib -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT +TFLAGS += -Wno-pointer-sign RM = rm -f A = drivers/arm/ C = drivers/common/ diff --git a/Makefile.sdl b/Makefile.sdl index dccd43d..792ed5d 100644 --- a/Makefile.sdl +++ b/Makefile.sdl @@ -1,7 +1,8 @@ #CROSS_COMPILE = CC = $(CROSS_COMPILE)gcc STRIP = $(CROSS_COMPILE)strip -TFLAGS = -Winline -Izlib -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT `sdl-config --cflags` +TFLAGS += -Winline -Izlib -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT `sdl-config --cflags` +TFLAGS += -Wno-pointer-sign -Wno-parentheses RM = rm -f C = drivers/common/ L = drivers/libpicofe/ diff --git a/cart.c b/cart.c index b159f39..909506a 100644 --- a/cart.c +++ b/cart.c @@ -307,7 +307,7 @@ void FASTAPASS(2) setchr8r(int r, unsigned int V) if(CHRram[r]) PPUCHRRAM|=(255); else - PPUCHRRAM&=~(255); + PPUCHRRAM&=0; } void FASTAPASS(2) setchr1(unsigned int A, unsigned int V) diff --git a/memory.c b/memory.c index de10c11..0194a83 100644 --- a/memory.c +++ b/memory.c @@ -63,12 +63,12 @@ void FCEU_gfree(void *ptr) void FASTAPASS(3) FCEU_memmove(void *d, void *s, uint32 l) { uint32 x; - int t; + long t; /* Type really doesn't matter. */ - t=(int)d; - t|=(int)s; - t|=(int)l; + t=(long)d; + t|=(long)s; + t|=(long)l; if(t&3) // Not 4-byte aligned and/or length is not a multiple of 4. { diff --git a/svga.c b/svga.c index 5ac1d70..fb086bf 100644 --- a/svga.c +++ b/svga.c @@ -210,7 +210,7 @@ void DriverInterface(int w, void *d) case DES_RESET:if(netplay!=2) CommandQueue=30;break; case DES_POWER:if(netplay!=2) CommandQueue=31;break; - case DES_VSUNIDIPSET:CommandQueue=10+(int)d;break; + case DES_VSUNIDIPSET:CommandQueue=10+(long)d;break; case DES_VSUNITOGGLEDIPVIEW:CommandQueue=10;break; case DES_VSUNICOIN:CommandQueue=19;break; #if 0