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
This commit is contained in:
John Roberts
2017-12-24 15:54:51 +01:00
committed by Vadim Zeitlin
parent 3de89b2710
commit f36973875e

View File

@@ -1646,6 +1646,7 @@ void wxWidgetCocoaImpl::PanGestureEvent(NSPanGestureRecognizer* panGestureRecogn
gestureState = NSGestureRecognizerStateBegan;
break;
case NSGestureRecognizerStateChanged:
gestureState = NSGestureRecognizerStateChanged;
break;
case NSGestureRecognizerStateEnded:
case NSGestureRecognizerStateCancelled: