From feb4a97ad790b9ab3bf573ab49544cb152f15a67 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Fri, 24 Feb 2017 14:33:49 +0100 Subject: [PATCH] Fix gcc warning type may be used uninitialized --- contrib/camera/dialogs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/camera/dialogs.cpp b/contrib/camera/dialogs.cpp index 07677e30..13b81470 100644 --- a/contrib/camera/dialogs.cpp +++ b/contrib/camera/dialogs.cpp @@ -602,6 +602,9 @@ static gint ci_add_target( GtkWidget *widget, gpointer data ){ else if ( gtk_toggle_button_get_active( (GtkToggleButton*)spline ) ) { type = 2; } + else { + break; + } // Add the target GetCurrentCam()->GetCam()->addTarget( str, static_cast( type ) );