2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #5226 from ReinUsesLisp/c4715-vc

video_core: Enforce C4715 (not all control paths return a value)
This commit is contained in:
Rodrigo Locatti 2020-12-25 03:11:47 -03:00 committed by GitHub
commit 0dc4ab42cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -294,6 +294,7 @@ if (MSVC)
/we4457 # Declaration of 'identifier' hides function parameter
/we4458 # Declaration of 'identifier' hides class member
/we4459 # Declaration of 'identifier' hides global declaration
/we4715 # 'function' : not all control paths return a value
)
else()
target_compile_options(video_core PRIVATE

View file

@ -2094,6 +2094,7 @@ private:
return OpFOrdGreaterThanEqual(t_bool, operand_1, operand_2);
default:
UNREACHABLE();
return v_true;
}
}