Fix a couple of warnings
authorGabriel Jacobo <gabomdq@gmail.com>
Wed, 21 Aug 2013 10:34:32 -0300
changeset 7682 f182a912606a
parent 7681 92591e0b84b8
child 7683 f7c061286490
Fix a couple of warnings
src/video/SDL_fillrect.c
src/video/x11/SDL_x11shape.c
--- a/src/video/SDL_fillrect.c	Wed Aug 21 10:27:39 2013 -0300
+++ b/src/video/SDL_fillrect.c	Wed Aug 21 10:34:32 2013 -0300
@@ -274,7 +274,7 @@
 SDL_FillRect2(Uint8 * pixels, int pitch, Uint32 color, int w, int h)
 {
     int n;
-    Uint8 *p = NULL;
+    Uint16 *p = NULL;
     
     while (h--) {
         n = w;
--- a/src/video/x11/SDL_x11shape.c	Wed Aug 21 10:27:39 2013 -0300
+++ b/src/video/x11/SDL_x11shape.c	Wed Aug 21 10:34:32 2013 -0300
@@ -90,7 +90,7 @@
 X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode) {
     SDL_ShapeData *data = NULL;
     SDL_WindowData *windowdata = NULL;
-    Pixmap shapemask = NULL;
+    Pixmap shapemask;
     
     if(shaper == NULL || shape == NULL || shaper->driverdata == NULL)
         return -1;