summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-31 00:17:05 +0100
committerGitHub <noreply@github.com>2020-12-31 00:17:05 +0100
commit53e49e536004eb983fbd3acea96ad57e3c3f7d4b (patch)
tree546606736ead66e5e29e31ee04f020511bcd5c46
parentMerge pull request #5260 from lioncash/uninit (diff)
parenthalf_set: Resolve -Wmaybe-uninitialized warnings (diff)
downloadyuzu-53e49e536004eb983fbd3acea96ad57e3c3f7d4b.tar
yuzu-53e49e536004eb983fbd3acea96ad57e3c3f7d4b.tar.gz
yuzu-53e49e536004eb983fbd3acea96ad57e3c3f7d4b.tar.bz2
yuzu-53e49e536004eb983fbd3acea96ad57e3c3f7d4b.tar.lz
yuzu-53e49e536004eb983fbd3acea96ad57e3c3f7d4b.tar.xz
yuzu-53e49e536004eb983fbd3acea96ad57e3c3f7d4b.tar.zst
yuzu-53e49e536004eb983fbd3acea96ad57e3c3f7d4b.zip
-rw-r--r--src/video_core/shader/decode/half_set.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/shader/decode/half_set.cpp b/src/video_core/shader/decode/half_set.cpp
index b2e88fa20..fa83108cd 100644
--- a/src/video_core/shader/decode/half_set.cpp
+++ b/src/video_core/shader/decode/half_set.cpp
@@ -22,13 +22,13 @@ u32 ShaderIR::DecodeHalfSet(NodeBlock& bb, u32 pc) {
const Instruction instr = {program_code[pc]};
const auto opcode = OpCode::Decode(instr);
- PredCondition cond;
- bool bf;
- bool ftz;
- bool neg_a;
- bool abs_a;
- bool neg_b;
- bool abs_b;
+ PredCondition cond{};
+ bool bf = false;
+ bool ftz = false;
+ bool neg_a = false;
+ bool abs_a = false;
+ bool neg_b = false;
+ bool abs_b = false;
switch (opcode->get().GetId()) {
case OpCode::Id::HSET2_C:
case OpCode::Id::HSET2_IMM: