aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-01-29 22:52:33 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-01-29 22:52:33 +0000
commit1b958498acaeee61f0db648b464c04f228f8aab6 (patch)
tree2fb3f87992946ad03cfda2b00cb79034c00ce996
parent320fba2a1f384e17db150d74540a2cf005eb47b5 (diff)
sdl: remove unused variable
Variable rec is not used, remove it. Spotted by GCC 4.6.0: CC ui/sdl.o /src/qemu/ui/sdl.c: In function 'sdl_setdata': /src/qemu/ui/sdl.c:90:14: error: variable 'rec' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--ui/sdl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ui/sdl.c b/ui/sdl.c
index f599d42425..a1458ce04d 100644
--- a/ui/sdl.c
+++ b/ui/sdl.c
@@ -87,12 +87,6 @@ static void sdl_update(DisplayState *ds, int x, int y, int w, int h)
static void sdl_setdata(DisplayState *ds)
{
- SDL_Rect rec;
- rec.x = 0;
- rec.y = 0;
- rec.w = real_screen->w;
- rec.h = real_screen->h;
-
if (guest_screen != NULL) SDL_FreeSurface(guest_screen);
guest_screen = SDL_CreateRGBSurfaceFrom(ds_get_data(ds), ds_get_width(ds), ds_get_height(ds),