You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +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:
@@ -260,7 +260,7 @@ void EditorQuickOpen::_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"));
|
||||
|
||||
Reference in New Issue
Block a user