# HG changeset patch # User Sam Lantinga # Date 1260051216 0 # Node ID e6f2f312780fdc8ab853f89b296a42acdcafa5e7 # Parent 455a6c47d2c652e395ffb147f4a19db2789c7977 Fixed compiler warnings diff -r 455a6c47d2c6 -r e6f2f312780f 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;