mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
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:
parent
8e14f9ba21
commit
d1a155e3cd
7 changed files with 31 additions and 26 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue