mirror of https://github.com/godotengine/godot
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
|
||
|---|---|---|
| .. | ||
| doc_classes | ||
| editor | ||
| glue | ||
| mono_gd | ||
| utils | ||
| SCsub | ||
| config.py | ||
| csharp_script.cpp | ||
| csharp_script.h | ||
| godotsharp_defs.h | ||
| godotsharp_dirs.cpp | ||
| godotsharp_dirs.h | ||
| mono_gc_handle.cpp | ||
| mono_gc_handle.h | ||
| mono_reg_utils.py | ||
| register_types.cpp | ||
| register_types.h | ||
| signal_awaiter_utils.cpp | ||
| signal_awaiter_utils.h | ||
| tls_configure.py | ||