summaryrefslogtreecommitdiff
path: root/libs/canvas/canvas.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-31 17:32:21 -0500
committerDavid Robillard <d@drobilla.net>2014-12-31 17:32:21 -0500
commit2558e52e22e3fc604e68a469e9a41608f9166148 (patch)
tree4d0d5839faf27179cfc49f6eb0f3e7c32d969d1b /libs/canvas/canvas.cc
parent0274c93eac27f6c65fb3c42ef3cb3bb576977b92 (diff)
Fix alleged use of uninitialized variable.
Looks like a guaranteed else branch to me, but who am I to argue with gcc?
Diffstat (limited to 'libs/canvas/canvas.cc')
-rw-r--r--libs/canvas/canvas.cc4
1 files changed, 2 insertions, 2 deletions
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<Item*> items_to_leave_virtual;
vector<Item*> items_to_enter_virtual;