From d8890f13e17f2fc883fb5419613ceecbb3c98b19 Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Tue, 16 Nov 2021 15:31:21 +0530 Subject: [PATCH] Explicitly make `default` case `break` for `Maxwell3D::HandleMethod` This being made implicit removes any confusion that all cases would need to be implemented and explicitly define that the CF should continue onto the 2nd switch-case when it cannot find any matches in the first one. --- app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp b/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp index 9ef02b5c..7c950fe7 100644 --- a/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp +++ b/app/src/main/cpp/skyline/soc/gm20b/engines/maxwell_3d.cpp @@ -377,6 +377,9 @@ namespace skyline::soc::gm20b::engine::maxwell3d { BOOST_PP_REPEAT(6, SET_SHADER_ENABLE_CALLBACK, 0) static_assert(type::StageCount == 6 && type::StageCount < BOOST_PP_LIMIT_REPEAT); #undef SET_SHADER_ENABLE_CALLBACK + + default: + break; } }