From eb914b6c50cbd79cdc76a508ab774e54e34c9b11 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 16 Sep 2020 17:48:01 -0300 Subject: video_core: Enforce -Werror=switch This forces us to fix all -Wswitch warnings in video_core. --- src/video_core/shader/decode/arithmetic_half.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/video_core/shader/decode/arithmetic_half.cpp') diff --git a/src/video_core/shader/decode/arithmetic_half.cpp b/src/video_core/shader/decode/arithmetic_half.cpp index a276aee44..88103fede 100644 --- a/src/video_core/shader/decode/arithmetic_half.cpp +++ b/src/video_core/shader/decode/arithmetic_half.cpp @@ -53,6 +53,9 @@ u32 ShaderIR::DecodeArithmeticHalf(NodeBlock& bb, u32 pc) { absolute_a = ((instr.value >> 44) & 1) != 0; absolute_b = ((instr.value >> 54) & 1) != 0; break; + default: + UNREACHABLE(); + break; } Node op_a = UnpackHalfFloat(GetRegister(instr.gpr8), instr.alu_half.type_a); -- cgit v1.2.3