From af33f7d5c9277f428ed416972053cad2860bcbfb Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Wed, 4 Sep 2024 01:24:37 -0700 Subject: [PATCH] Indicate fallthrough to prevent a GCC warning Without this here, GCC 11 and 12 will print a warning during compilation about a possible fallthrough, but we're doing that on purpose, so this simply adds an indicator to the compiler that we know what we're doing. --- src/ActorMultiVertex.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ActorMultiVertex.cpp b/src/ActorMultiVertex.cpp index fa623ec8aa..f9584a9891 100644 --- a/src/ActorMultiVertex.cpp +++ b/src/ActorMultiVertex.cpp @@ -502,6 +502,7 @@ void ActorMultiVertex::UpdateAnimationState(bool force_update) break; } } + [[fallthrough]]; case DrawMode_QuadStrip: for (std::size_t i = first; i < last; ++i) {