summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2020-12-30 15:17:05 -0800
committerGravatar GitHub2020-12-30 15:17:05 -0800
commit53e49e536004eb983fbd3acea96ad57e3c3f7d4b (patch)
tree546606736ead66e5e29e31ee04f020511bcd5c46
parentMerge pull request #5260 from lioncash/uninit (diff)
parenthalf_set: Resolve -Wmaybe-uninitialized warnings (diff)
downloadyuzu-53e49e536004eb983fbd3acea96ad57e3c3f7d4b.tar.gz
yuzu-53e49e536004eb983fbd3acea96ad57e3c3f7d4b.tar.xz
yuzu-53e49e536004eb983fbd3acea96ad57e3c3f7d4b.zip
Merge pull request #5263 from lioncash/uninit
half_set: Resolve -Wmaybe-uninitialized warnings
-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) {
22 const Instruction instr = {program_code[pc]}; 22 const Instruction instr = {program_code[pc]};
23 const auto opcode = OpCode::Decode(instr); 23 const auto opcode = OpCode::Decode(instr);
24 24
25 PredCondition cond; 25 PredCondition cond{};
26 bool bf; 26 bool bf = false;
27 bool ftz; 27 bool ftz = false;
28 bool neg_a; 28 bool neg_a = false;
29 bool abs_a; 29 bool abs_a = false;
30 bool neg_b; 30 bool neg_b = false;
31 bool abs_b; 31 bool abs_b = false;
32 switch (opcode->get().GetId()) { 32 switch (opcode->get().GetId()) {
33 case OpCode::Id::HSET2_C: 33 case OpCode::Id::HSET2_C:
34 case OpCode::Id::HSET2_IMM: 34 case OpCode::Id::HSET2_IMM: