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
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
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;
}