From 3ae93e6b4c209b9141b02e2647c6fe2194359dd9 Mon Sep 17 00:00:00 2001 From: andheh <36114788+andheh@users.noreply.github.com> Date: Thu, 15 Feb 2018 15:47:00 +0100 Subject: [PATCH] fixed unused variable warnings in SelectHandle.cpp --- src/tracks/ui/SelectHandle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tracks/ui/SelectHandle.cpp b/src/tracks/ui/SelectHandle.cpp index d999da35d..1b564d69b 100644 --- a/src/tracks/ui/SelectHandle.cpp +++ b/src/tracks/ui/SelectHandle.cpp @@ -411,6 +411,8 @@ UIHandlePtr SelectHandle::HitTest wxInt64 rightSel = viewInfo.TimeToPosition(viewInfo.selectedRegion.t1(), rect.x); // Something is wrong if right edge comes before left edge wxASSERT(!(rightSel < leftSel)); + static_cast(leftSel); // Suppress unused variable warnings if not in debug-mode + static_cast(rightSel); } return result;