From 1d0044cbc81e547ad688a295288910d58e1a3fb1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 May 2011 22:03:32 +0300 Subject: Fix compilation warnings after guichan integration. Remove temp file. --- src/guichan/sdl/sdlpixel.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/guichan/sdl/sdlpixel.hpp') diff --git a/src/guichan/sdl/sdlpixel.hpp b/src/guichan/sdl/sdlpixel.hpp index 49686ebc1..a5d9ca5a1 100644 --- a/src/guichan/sdl/sdlpixel.hpp +++ b/src/guichan/sdl/sdlpixel.hpp @@ -93,6 +93,9 @@ namespace gcn color = *(Uint32 *)p; break; + default: + color = *p; + break; } unsigned char r,g,b,a; @@ -148,6 +151,9 @@ namespace gcn case 4: *(Uint32 *)p = pixel; break; + + default: + break; } SDL_UnlockSurface(surface); @@ -251,6 +257,8 @@ namespace gcn case 4: *(Uint32 *)p = SDLAlpha32(pixel, *(Uint32 *)p, color.a); break; + default: + break; } SDL_UnlockSurface(surface); -- cgit v1.2.3-70-g09d2