mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Core: Add [[nodiscard]]
to string-like classes
This commit is contained in:
parent
6a6a1168a5
commit
579feb387c
12 changed files with 22 additions and 21 deletions
|
@ -552,7 +552,8 @@ void ShaderPreprocessor::process_else(Tokenizer *p_tokenizer) {
|
|||
if (skip) {
|
||||
Vector<String> ends;
|
||||
ends.push_back("endif");
|
||||
next_directive(p_tokenizer, ends);
|
||||
// Legacy return value.
|
||||
_ALLOW_DISCARD_ next_directive(p_tokenizer, ends);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -847,7 +848,8 @@ void ShaderPreprocessor::start_branch_condition(Tokenizer *p_tokenizer, bool p_s
|
|||
ends.push_back("elif");
|
||||
ends.push_back("else");
|
||||
ends.push_back("endif");
|
||||
next_directive(p_tokenizer, ends);
|
||||
// Legacy return value.
|
||||
_ALLOW_DISCARD_ next_directive(p_tokenizer, ends);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue