From 4c39db7af4e87f3b8ce92de8f25e88c6cdf12ce9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 1 Dec 2022 20:24:51 +0100 Subject: editor: fix warning --- editor/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/editor.cpp b/editor/editor.cpp index 11d26fdd..cfb36480 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -53,7 +53,7 @@ global_coords editor::apply_snap(global_coords pos, global_coords last, snap_mod void editor::on_mouse_move(world& world, global_coords& pos, int mods) { - if (auto* mode = current_tile_editor()) + if ([[maybe_unused]] auto* mode = current_tile_editor()) { if (_last_pos && _last_pos->btn != button::none) { -- cgit v1.2.3