You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Core: Add [[nodiscard]] to string-like classes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user