Browse Source
Merge pull request #5226 from ReinUsesLisp/c4715-vc
video_core: Enforce C4715 (not all control paths return a value)
pull/15/merge
Rodrigo Locatti
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
0 deletions
-
src/video_core/CMakeLists.txt
-
src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
|
|
@ -294,6 +294,7 @@ if (MSVC) |
|
|
/we4457 # Declaration of 'identifier' hides function parameter |
|
|
/we4457 # Declaration of 'identifier' hides function parameter |
|
|
/we4458 # Declaration of 'identifier' hides class member |
|
|
/we4458 # Declaration of 'identifier' hides class member |
|
|
/we4459 # Declaration of 'identifier' hides global declaration |
|
|
/we4459 # Declaration of 'identifier' hides global declaration |
|
|
|
|
|
/we4715 # 'function' : not all control paths return a value |
|
|
) |
|
|
) |
|
|
else() |
|
|
else() |
|
|
target_compile_options(video_core PRIVATE |
|
|
target_compile_options(video_core PRIVATE |
|
|
|
|
|
@ -2094,6 +2094,7 @@ private: |
|
|
return OpFOrdGreaterThanEqual(t_bool, operand_1, operand_2); |
|
|
return OpFOrdGreaterThanEqual(t_bool, operand_1, operand_2); |
|
|
default: |
|
|
default: |
|
|
UNREACHABLE(); |
|
|
UNREACHABLE(); |
|
|
|
|
|
return v_true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|