mirror of
https://github.com/godotengine/godot.git
synced 2025-02-11 22:35:15 +08:00
Adds `FALLTHROUGH` macro to specify when a fallthrough is intentional.
Can be replaced by `[[fallthrough]]` if/when we switch to C++17.
The warning is now enabled by default for GCC on `extra` warnings level
(part of GCC's `-Wextra`). It's not enabled in Clang's `-Wextra` yet,
but we could enable it manually once we switch to C++11. There's no
equivalent feature in MSVC for now.
Fixes #26135.
(cherry picked from commit
|
||
---|---|---|
.. | ||
SCsub | ||
test_astar.cpp | ||
test_astar.h | ||
test_gdscript.cpp | ||
test_gdscript.h | ||
test_gui.cpp | ||
test_gui.h | ||
test_main.cpp | ||
test_main.h | ||
test_math.cpp | ||
test_math.h | ||
test_oa_hash_map.cpp | ||
test_oa_hash_map.h | ||
test_ordered_hash_map.cpp | ||
test_ordered_hash_map.h | ||
test_physics_2d.cpp | ||
test_physics_2d.h | ||
test_physics.cpp | ||
test_physics.h | ||
test_render.cpp | ||
test_render.h | ||
test_shader_lang.cpp | ||
test_shader_lang.h | ||
test_string.cpp | ||
test_string.h |