1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

fixed unused variable warnings in SelectHandle.cpp

This commit is contained in:
andheh 2018-02-15 15:47:00 +01:00 committed by James Crook
parent 50901b9454
commit 3ae93e6b4c

View File

@ -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<void>(leftSel); // Suppress unused variable warnings if not in debug-mode
static_cast<void>(rightSel);
}
return result;