From 5b342944e62d2cacdcfcec835e01f89ce60c5689 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Tue, 23 Aug 2016 13:49:43 +0200 Subject: [PATCH] Fix gcc warning item may be used uninitialized in this function --- radiant/mainframe.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/radiant/mainframe.cpp b/radiant/mainframe.cpp index 4fb3b198..211f2da4 100644 --- a/radiant/mainframe.cpp +++ b/radiant/mainframe.cpp @@ -7172,6 +7172,7 @@ void MainFrame::OnGridPrev(){ case 64: item = GTK_WIDGET( g_object_get_data( G_OBJECT( m_pWidget ), "menu_grid_64" ) ); break; case 128: item = GTK_WIDGET( g_object_get_data( G_OBJECT( m_pWidget ), "menu_grid_128" ) ); break; case 256: item = GTK_WIDGET( g_object_get_data( G_OBJECT( m_pWidget ), "menu_grid_256" ) ); break; + default: return; } }