fix optimized unused variable warning

This commit is contained in:
Paul Davis 2022-06-21 18:43:45 -06:00
parent 26d2c8a7fa
commit ebb9d3d4dc

View file

@ -112,7 +112,10 @@ Strip::Strip (Surface& s, const std::string& name, int index, const map<Button::
}
for (map<Button::ID,StripButtonInfo>::const_iterator b = strip_buttons.begin(); b != strip_buttons.end(); ++b) {
Button* bb = dynamic_cast<Button*> (Button::factory (*_surface, b->first, b->second.base_id + index, b->second.name, *this));
#ifndef NDEBUG
Button* bb = dynamic_cast<Button*>
#endif
(Button::factory (*_surface, b->first, b->second.base_id + index, b->second.name, *this));
DEBUG_TRACE (DEBUG::US2400, string_compose ("surface %1 strip %2 new button BID %3 id %4 from base %5\n",
_surface->number(), index, Button::id_to_name (bb->bid()),
bb->id(), b->second.base_id));