Fix -Wunused-but-set-variable warnings from Emscripten 3.1.20

This commit is contained in:
Rémi Verschelde
2022-11-04 11:36:13 +01:00
parent 191c8ed12f
commit f475c91081
6 changed files with 1 additions and 21 deletions

View File

@ -29,6 +29,7 @@
/*************************************************************************/
#include "editor/action_map_editor.h"
#include "editor/editor_scale.h"
#include "editor/event_listener_line_edit.h"
#include "editor/input_event_configuration_dialog.h"
@ -395,15 +396,9 @@ void ActionMapEditor::update_action_list(const Vector<ActionInfo> &p_action_info
action_tree->clear();
TreeItem *root = action_tree->create_item();
int uneditable_count = 0;
for (int i = 0; i < actions_cache.size(); i++) {
ActionInfo action_info = actions_cache[i];
if (!action_info.editable) {
uneditable_count++;
}
const Array events = action_info.action["events"];
if (!_should_display_action(action_info.name, events)) {
continue;