From f16e9045a22fc7e0eeac49cb8fc23d7f8f673355 Mon Sep 17 00:00:00 2001 From: Fletcher Porter Date: Wed, 13 Oct 2021 23:54:06 -0700 Subject: [PATCH] Silence the -Wswitch warnings in Tev The compiler was loudly announcing each and every branch Tev was not checking in a switch statement, but Tev has learned it's lesson and will produce that warning no more. --- Source/Core/VideoBackends/Software/Tev.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/VideoBackends/Software/Tev.cpp b/Source/Core/VideoBackends/Software/Tev.cpp index 1da39f6ca7..28c6c5f29d 100644 --- a/Source/Core/VideoBackends/Software/Tev.cpp +++ b/Source/Core/VideoBackends/Software/Tev.cpp @@ -814,6 +814,8 @@ void Tev::Draw() fog = 1.0f - fog; fog = pow(2.0f, -8.0f * fog * fog); break; + default: + break; } // lerp from output to fog color