From 90ea40f3468df958da7684fb183e9231507bd5e5 Mon Sep 17 00:00:00 2001 From: Bogumil Sapinski Date: Mon, 26 Jun 2023 14:05:51 +0200 Subject: [PATCH] fixed warning unhandled enumeration value in switch --- samples/extensions/khr/conway/main.cpp | 2 ++ samples/extensions/khr/nbody/main.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/samples/extensions/khr/conway/main.cpp b/samples/extensions/khr/conway/main.cpp index 4034df6d..d595a367 100644 --- a/samples/extensions/khr/conway/main.cpp +++ b/samples/extensions/khr/conway/main.cpp @@ -363,6 +363,8 @@ 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 7805ae09..1482584e 100644 --- a/samples/extensions/khr/nbody/main.cpp +++ b/samples/extensions/khr/nbody/main.cpp @@ -421,6 +421,8 @@ void NBody::event(const sf::Event& event) dist = abs(dist); needMatrixReset = true; // view matrix need to be recalculated break; + default: + break; } }