From f36973875ead865f0ca251b57971255cd9f73777 Mon Sep 17 00:00:00 2001 From: John Roberts Date: Sun, 24 Dec 2017 15:54:51 +0100 Subject: [PATCH] Silence uninitialized variable warning in wxMac PanGestureEvent Even though the value of this variable is not actually used in this case, we still must initialize it to something before comparing with NSGestureRecognizerState{Began,Ended} below. Closes https://github.com/wxWidgets/wxWidgets/pull/645 --- src/osx/cocoa/window.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index ffe70b4429..de48514a23 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -1646,6 +1646,7 @@ void wxWidgetCocoaImpl::PanGestureEvent(NSPanGestureRecognizer* panGestureRecogn gestureState = NSGestureRecognizerStateBegan; break; case NSGestureRecognizerStateChanged: + gestureState = NSGestureRecognizerStateChanged; break; case NSGestureRecognizerStateEnded: case NSGestureRecognizerStateCancelled: