From 9d052e267da7117fc91c9e24d1b1eaf52d11fe8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Mon, 7 Jun 2021 15:12:09 +0200 Subject: [PATCH] Fix "unused variable" warning on release builds --- rtgui/spot.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/rtgui/spot.cc b/rtgui/spot.cc index d9a6be6b7..35028415b 100644 --- a/rtgui/spot.cc +++ b/rtgui/spot.cc @@ -361,6 +361,7 @@ void Spot::createGeometry () EditSubscriber::visibleGeometry.at (j++) = &targetFeatherCircle; // VISIBLE_OBJECT_COUNT + 4 assert(j - visibleOffset == VISIBLE_TARGET_CIRCLE); EditSubscriber::visibleGeometry.at (j++) = &targetCircle; // VISIBLE_OBJECT_COUNT + 5 + static_cast(visibleOffset); } void Spot::updateGeometry()