mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Merge pull request #67027 from akien-mga/msvc-fix-c4702
Fix more MSVC C4702 (unreachable code) warnings
This commit is contained in:
commit
0384abe9ca
@ -1929,8 +1929,6 @@ String Variant::stringify(int recursion_count) const {
|
||||
return "<" + get_type_name(type) + ">";
|
||||
}
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
String Variant::to_json_string() const {
|
||||
|
@ -479,9 +479,9 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) {
|
||||
result.output = get_text_for_status(result.status) + "\n";
|
||||
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (const GDScriptParser::ParserError &E : errors) {
|
||||
result.output += E.message + "\n"; // TODO: line, column?
|
||||
break; // Only the first error since the following might be cascading.
|
||||
if (!errors.is_empty()) {
|
||||
// Only the first error since the following might be cascading.
|
||||
result.output += errors[0].message + "\n"; // TODO: line, column?
|
||||
}
|
||||
if (!p_is_generating) {
|
||||
result.passed = check_output(result.output);
|
||||
@ -498,9 +498,9 @@ GDScriptTest::TestResult GDScriptTest::execute_test_code(bool p_is_generating) {
|
||||
result.output = get_text_for_status(result.status) + "\n";
|
||||
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (const GDScriptParser::ParserError &E : errors) {
|
||||
result.output += E.message + "\n"; // TODO: line, column?
|
||||
break; // Only the first error since the following might be cascading.
|
||||
if (!errors.is_empty()) {
|
||||
// Only the first error since the following might be cascading.
|
||||
result.output += errors[0].message + "\n"; // TODO: line, column?
|
||||
}
|
||||
if (!p_is_generating) {
|
||||
result.passed = check_output(result.output);
|
||||
|
Loading…
Reference in New Issue
Block a user