From 2558e52e22e3fc604e68a469e9a41608f9166148 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 31 Dec 2014 17:32:21 -0500 Subject: Fix alleged use of uninitialized variable. Looks like a guaranteed else branch to me, but who am I to argue with gcc? --- libs/canvas/canvas.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/canvas/canvas.cc') diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc index be0f25d7a2..eb18899ab3 100644 --- a/libs/canvas/canvas.cc +++ b/libs/canvas/canvas.cc @@ -516,8 +516,8 @@ GtkCanvas::deliver_enter_leave (Duple const & point, int state) leave_event.type = GDK_LEAVE_NOTIFY; Item* i; - GdkNotifyType enter_detail; - GdkNotifyType leave_detail; + GdkNotifyType enter_detail = GDK_NOTIFY_UNKNOWN; + GdkNotifyType leave_detail = GDK_NOTIFY_UNKNOWN; vector items_to_leave_virtual; vector items_to_enter_virtual; -- cgit v1.2.3