tree 5b46fd5b8c94
authorSam Lantinga <slouken@libsdl.org>
Mon, 11 Feb 2013 21:47:13 -0800
changeset 6863 73be5b6b2a86
parent 6862 d189a1e771fe
child 6864 97187387ad79
tree 5b46fd5b8c94 parent 971b278f0756 author Edward Rudd <urkle@outoforder.cc> 1358022907 18000 committer Edward Rudd <urkle@outoforder.cc> 1358022907 18000 revision 6819 branch default Remove some redundant assigns
src/events/SDL_touch.c
src/haptic/darwin/SDL_syshaptic.c
src/video/SDL_blit_A.c
src/video/SDL_shape.c
--- a/src/events/SDL_touch.c	Mon Feb 11 21:39:58 2013 -0800
+++ b/src/events/SDL_touch.c	Mon Feb 11 21:47:13 2013 -0800
@@ -125,7 +125,6 @@
     SDL_memcpy(SDL_touchPads[index], touch, sizeof(*touch));
 
     /* we're setting the touch properties */
-    length = 0;
     length = SDL_strlen(name);
     SDL_touchPads[index]->focus = 0;
     SDL_touchPads[index]->name = SDL_malloc((length + 2) * sizeof(char));
--- a/src/haptic/darwin/SDL_syshaptic.c	Mon Feb 11 21:39:58 2013 -0800
+++ b/src/haptic/darwin/SDL_syshaptic.c	Mon Feb 11 21:47:13 2013 -0800
@@ -173,7 +173,6 @@
     /* IOServiceGetMatchingServices consumes dictionary. */
 
     if (!IOIteratorIsValid(iter)) {     /* No iterator. */
-        numhaptics = 0;
         return 0;
     }
 
--- a/src/video/SDL_blit_A.c	Mon Feb 11 21:39:58 2013 -0800
+++ b/src/video/SDL_blit_A.c	Mon Feb 11 21:47:13 2013 -0800
@@ -258,7 +258,7 @@
 BlitRGBtoRGBSurfaceAlphaMMX(SDL_BlitInfo * info)
 {
     SDL_PixelFormat *df = info->dst_fmt;
-    Uint32 chanmask = df->Rmask | df->Gmask | df->Bmask;
+    Uint32 chanmask;
     unsigned alpha = info->a;
 
     if (alpha == 128 && (df->Rmask | df->Gmask | df->Bmask) == 0x00FFFFFF) {
--- a/src/video/SDL_shape.c	Mon Feb 11 21:39:58 2013 -0800
+++ b/src/video/SDL_shape.c	Mon Feb 11 21:47:13 2013 -0800
@@ -71,7 +71,6 @@
     SDL_Color key;
     if(SDL_MUSTLOCK(shape))
         SDL_LockSurface(shape);
-    pixel = (Uint8*)shape->pixels;
     for(y = 0;y<shape->h;y++) {
         for(x=0;x<shape->w;x++) {
             alpha = 0;