diff options
| author | 2021-07-11 22:10:38 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:40 -0400 | |
| commit | 49946cf780c317b4c5ccabb52ec433eba01c1970 (patch) | |
| tree | 628060b15b133cf3a1aaf716fba3517fc5c983f0 /src/shader_recompiler/frontend/ir/opcodes.h | |
| parent | main: Update Shader Cache menu options (diff) | |
| download | yuzu-49946cf780c317b4c5ccabb52ec433eba01c1970.tar.gz yuzu-49946cf780c317b4c5ccabb52ec433eba01c1970.tar.xz yuzu-49946cf780c317b4c5ccabb52ec433eba01c1970.zip | |
shader_recompiler, video_core: Resolve clang errors
Silences the following warnings-turned-errors:
-Wsign-conversion
-Wunused-private-field
-Wbraced-scalar-init
-Wunused-variable
And some other errors
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/opcodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/ir/opcodes.h b/src/shader_recompiler/frontend/ir/opcodes.h index 56b001902..9ab108292 100644 --- a/src/shader_recompiler/frontend/ir/opcodes.h +++ b/src/shader_recompiler/frontend/ir/opcodes.h | |||
| @@ -67,7 +67,8 @@ constexpr OpcodeMeta META_TABLE[]{ | |||
| 67 | }; | 67 | }; |
| 68 | constexpr size_t CalculateNumArgsOf(Opcode op) { | 68 | constexpr size_t CalculateNumArgsOf(Opcode op) { |
| 69 | const auto& arg_types{META_TABLE[static_cast<size_t>(op)].arg_types}; | 69 | const auto& arg_types{META_TABLE[static_cast<size_t>(op)].arg_types}; |
| 70 | return std::distance(arg_types.begin(), std::ranges::find(arg_types, Type::Void)); | 70 | return static_cast<size_t>( |
| 71 | std::distance(arg_types.begin(), std::ranges::find(arg_types, Type::Void))); | ||
| 71 | } | 72 | } |
| 72 | 73 | ||
| 73 | constexpr u8 NUM_ARGS[]{ | 74 | constexpr u8 NUM_ARGS[]{ |