changeset 3526:e6f2f312780f

Fixed compiler warnings
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Dec 2009 22:13:36 +0000
parents 455a6c47d2c6
children 444cb12cadb6
files src/video/SDL_video.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
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;