diff src/video/SDL_blit_N.c @ 1487:dc6b59e925a2

Cleaning up warnings on MacOS X
author Sam Lantinga <slouken@libsdl.org>
date Thu, 09 Mar 2006 06:33:21 +0000
parents 9ebbbb4ae53b
children 98f9b16f565c
line wrap: on
line diff
--- a/src/video/SDL_blit_N.c	Wed Mar 08 18:30:12 2006 +0000
+++ b/src/video/SDL_blit_N.c	Thu Mar 09 06:33:21 2006 +0000
@@ -119,7 +119,7 @@
     if (!dstfmt) {
         dstfmt = &default_pixel_format;
     }
-    vector unsigned char plus = VECUINT8_LITERAL(
+    const vector unsigned char plus = VECUINT8_LITERAL(
                                       0x00, 0x00, 0x00, 0x00,
                                       0x04, 0x04, 0x04, 0x04,
                                       0x08, 0x08, 0x08, 0x08,
@@ -559,10 +559,11 @@
     vpermute = calc_swizzle32(srcfmt, dstfmt);
     if (info->d_width < 16) {
         if(copy_alpha) {
-            return BlitNtoNKeyCopyAlpha(info);
+            BlitNtoNKeyCopyAlpha(info);
         } else {
-            return BlitNtoNKey(info);
+            BlitNtoNKey(info);
         }
+        return;
     }
     vzero = vec_splat_u8(0);
     if (alpha) {