From ee94c1d03a571369d45645be16ab4f5cd5ae9f53 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 5 Dec 2022 07:49:08 +0100 Subject: editor: fix warning --- editor/update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/update.cpp b/editor/update.cpp index d55419ab..f6d64411 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -142,7 +142,7 @@ void app::update(float dt) do_camera(dt, keys, get_key_modifiers()); clear_non_repeated_keys(); - if (clickable_scenery* s = find_clickable_scenery(cursor.pixel)) + if ([[maybe_unused]] clickable_scenery* s = find_clickable_scenery(cursor.pixel)) M->set_cursor(std::uint32_t(Cursor::Hand)); else M->set_cursor(std::uint32_t(Cursor::Arrow)); -- cgit v1.2.3