1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Core: Add [[nodiscard]] to string-like classes

This commit is contained in:
Thaddeus Crews
2024-06-23 12:28:04 -05:00
parent 6a6a1168a5
commit 579feb387c
12 changed files with 22 additions and 21 deletions

View File

@@ -1563,7 +1563,8 @@ Error ShaderCompiler::compile(RS::ShaderMode p_mode, const String &p_code, Ident
shader = parser.get_shader();
function = nullptr;
_dump_node_code(shader, 1, r_gen_code, *p_actions, actions, false);
// Return value only relevant within nested calls.
_ALLOW_DISCARD_ _dump_node_code(shader, 1, r_gen_code, *p_actions, actions, false);
return OK;
}