mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Replace FALLTHROUGH macro by C++17 [[fallthrough]]
This attribute is now part of the standard we target so we no longer need compiler-specific hacks. Also enables -Wimplicit-fallthrough for Clang now that we can properly support it. It's already on by default for GCC's -Wextra. Fixes new warnings raised by Clang's -Wimplicit-fallthrough.
This commit is contained in:
parent
a7891b9d12
commit
2cf6ac6c50
25 changed files with 75 additions and 88 deletions
|
|
@ -214,7 +214,7 @@ void ScriptEditorQuickOpen::_notification(int p_what) {
|
|||
connect_compat("confirmed", this, "_confirmed");
|
||||
|
||||
search_box->set_clear_button_enabled(true);
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
}
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
search_box->set_right_icon(get_icon("Search", "EditorIcons"));
|
||||
|
|
@ -900,7 +900,7 @@ void ScriptEditor::_file_dialog_action(String p_file) {
|
|||
}
|
||||
file->close();
|
||||
memdelete(file);
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
}
|
||||
case FILE_OPEN: {
|
||||
|
||||
|
|
@ -1396,7 +1396,7 @@ void ScriptEditor::_notification(int p_what) {
|
|||
script_split->connect_compat("dragged", this, "_script_split_dragged");
|
||||
|
||||
EditorSettings::get_singleton()->connect_compat("settings_changed", this, "_editor_settings_changed");
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
}
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue