Fix various -Wmaybe-uninitialized warnings from GCC 12.2.1

Not sure why I didn't get those before, it may be due to upstream
changes (12.2.1 is a moving target, it's basically 12.3-dev), or simply
rebuilding Godot from scratch with different options.
This commit is contained in:
Rémi Verschelde 2022-09-22 09:25:47 +02:00
parent 8e14f9ba21
commit d1a155e3cd
7 changed files with 31 additions and 26 deletions

View file

@ -763,7 +763,7 @@ void EditorFeatureProfileManager::_update_selected_profile() {
TreeItem *root = class_list->create_item();
TreeItem *features = class_list->create_item(root);
TreeItem *last_feature;
TreeItem *last_feature = nullptr;
features->set_text(0, TTR("Main Features:"));
for (int i = 0; i < EditorFeatureProfile::FEATURE_MAX; i++) {
TreeItem *feature;