diff src/video/SDL_video.c @ 3526:e6f2f312780f

Fixed compiler warnings
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Dec 2009 22:13:36 +0000
parents e7eec78e4b92
children 59ff7a2beb57
line wrap: on
line diff
--- a/src/video/SDL_video.c	Sat Dec 05 19:57:49 2009 +0000
+++ b/src/video/SDL_video.c	Sat Dec 05 22:13:36 2009 +0000
@@ -597,7 +597,7 @@
 {
     SDL_DisplayMode display_mode;
     SDL_DisplayMode current_mode;
-    int i, ncolors;
+    int ncolors;
 
     if (mode) {
         display_mode = *mode;
@@ -687,6 +687,7 @@
     } else {
         SDL_zero(window->fullscreen_mode);
     }
+    return 0;
 }
 
 int
@@ -832,8 +833,6 @@
 int
 SDL_GetDisplayPalette(SDL_Color * colors, int firstcolor, int ncolors)
 {
-    SDL_Palette *palette;
-
     if (!_this) {
         SDL_UninitializedVideo();
         return -1;