random warning fixes
authornotaz <notasas@gmail.com>
Sun, 30 Sep 2012 15:08:39 +0000 (18:08 +0300)
committernotaz <notasas@gmail.com>
Sun, 30 Sep 2012 15:09:40 +0000 (18:09 +0300)
Makefile.pandora
Makefile.sdl
cart.c
memory.c
svga.c

index f35047e..ad56ca2 100644 (file)
@@ -2,7 +2,8 @@
 CC     = $(CROSS_COMPILE)gcc
 AS     = $(CROSS_COMPILE)as
 STRIP  = $(CROSS_COMPILE)strip
 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/
 RM     = rm -f
 A      = drivers/arm/
 C      = drivers/common/
index dccd43d..792ed5d 100644 (file)
@@ -1,7 +1,8 @@
 #CROSS_COMPILE =
 CC     = $(CROSS_COMPILE)gcc
 STRIP  = $(CROSS_COMPILE)strip
 #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/
 RM     = rm -f
 C      = drivers/common/
 L      = drivers/libpicofe/
diff --git a/cart.c b/cart.c
index b159f39..909506a 100644 (file)
--- 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
   if(CHRram[r])
    PPUCHRRAM|=(255);
   else
-   PPUCHRRAM&=~(255);
+   PPUCHRRAM&=0;
 }
 
 void FASTAPASS(2) setchr1(unsigned int A, unsigned int V)
 }
 
 void FASTAPASS(2) setchr1(unsigned int A, unsigned int V)
index de10c11..0194a83 100644 (file)
--- 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;
 void FASTAPASS(3) FCEU_memmove(void *d, void *s, uint32 l)
 {
  uint32 x;
int t;
long t;
 
  /* Type really doesn't matter. */
 
  /* 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.
  {
 
  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 (file)
--- 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_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
   case DES_VSUNITOGGLEDIPVIEW:CommandQueue=10;break;
   case DES_VSUNICOIN:CommandQueue=19;break;
 #if 0