From a5abceccb2df8931456277f6f572c3dbbe6d8962 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 29 Sep 2010 12:36:39 +0200 Subject: Fix warning from OSX compiler The OSX compiler warns about uninitialized variable, so we change a bit how size is initialized. --- client/application.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'client') diff --git a/client/application.cpp b/client/application.cpp index 490cd8ca..3bd3330e 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -647,13 +647,10 @@ RedScreen* Application::get_screen(int id) if (!(screen = _screens[id])) { Monitor* mon = find_monitor(id); - SpicePoint size; + SpicePoint size = {SCREEN_INIT_WIDTH, SCREEN_INIT_HEIGHT}; if (_full_screen && mon) { size = mon->get_size(); - } else { - size.x = SCREEN_INIT_WIDTH; - size.y = SCREEN_INIT_HEIGHT; } screen = _screens[id] = new RedScreen(*this, id, _title, size.x, size.y); #ifdef USE_GUI -- cgit