You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +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:
@@ -128,7 +128,7 @@ static String _parser_expr(const GDScriptParser::Node *p_expr) {
|
||||
|
||||
case GDScriptParser::OperatorNode::OP_PARENT_CALL:
|
||||
txt += ".";
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
case GDScriptParser::OperatorNode::OP_CALL: {
|
||||
|
||||
ERR_FAIL_COND_V(c_node->arguments.size() < 1, "");
|
||||
|
||||
Reference in New Issue
Block a user