Fix a couple of warnings
authorGabriel Jacobo
Wed, 21 Aug 2013 10:34:32 -0300
changeset 7682f182a912606a
parent 7681 92591e0b84b8
child 7683 f7c061286490
Fix a couple of warnings
src/video/SDL_fillrect.c
src/video/x11/SDL_x11shape.c
     1.1 --- a/src/video/SDL_fillrect.c	Wed Aug 21 10:27:39 2013 -0300
     1.2 +++ b/src/video/SDL_fillrect.c	Wed Aug 21 10:34:32 2013 -0300
     1.3 @@ -274,7 +274,7 @@
     1.4  SDL_FillRect2(Uint8 * pixels, int pitch, Uint32 color, int w, int h)
     1.5  {
     1.6      int n;
     1.7 -    Uint8 *p = NULL;
     1.8 +    Uint16 *p = NULL;
     1.9      
    1.10      while (h--) {
    1.11          n = w;
     2.1 --- a/src/video/x11/SDL_x11shape.c	Wed Aug 21 10:27:39 2013 -0300
     2.2 +++ b/src/video/x11/SDL_x11shape.c	Wed Aug 21 10:34:32 2013 -0300
     2.3 @@ -90,7 +90,7 @@
     2.4  X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode) {
     2.5      SDL_ShapeData *data = NULL;
     2.6      SDL_WindowData *windowdata = NULL;
     2.7 -    Pixmap shapemask = NULL;
     2.8 +    Pixmap shapemask;
     2.9      
    2.10      if(shaper == NULL || shape == NULL || shaper->driverdata == NULL)
    2.11          return -1;