Fixed compiler warnings
authorSam Lantinga <slouken@libsdl.org>
Sat, 05 Dec 2009 22:13:36 +0000
changeset 3526 e6f2f312780f
parent 3525 455a6c47d2c6
child 3527 444cb12cadb6
Fixed compiler warnings
src/video/SDL_video.c
--- 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;