From b9633c899237ee8fb30fa02bd2277882a9d97a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Ferenc=20Nagy-Egri?= Date: Thu, 16 Nov 2023 13:35:27 +0100 Subject: [PATCH] warning: enumeration value x not handled in switch --- samples/extensions/khr/conway/main.cpp | 1 + samples/extensions/khr/nbody/main.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/samples/extensions/khr/conway/main.cpp b/samples/extensions/khr/conway/main.cpp index 4fc85c8c..8a3f3c96 100644 --- a/samples/extensions/khr/conway/main.cpp +++ b/samples/extensions/khr/conway/main.cpp @@ -354,6 +354,7 @@ void Conway::event(const sf::Event& event) animating = !animating; } break; + default: break; } } diff --git a/samples/extensions/khr/nbody/main.cpp b/samples/extensions/khr/nbody/main.cpp index 6488ddd1..c0af5d27 100644 --- a/samples/extensions/khr/nbody/main.cpp +++ b/samples/extensions/khr/nbody/main.cpp @@ -412,6 +412,7 @@ void NBody::event(const sf::Event& event) dist = abs(dist); needMatrixReset = true; // view matrix need to be recalculated break; + default: break; } }