From 42d18143e507a9803a402057d29387733292fb43 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 6 Jul 2022 16:54:45 +0200 Subject: [PATCH] use std::unreachable in avars --- src/helpers/AnimatedVariable.hpp | 6 +++--- src/includes.hpp | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/helpers/AnimatedVariable.hpp b/src/helpers/AnimatedVariable.hpp index ceda2c57..a87fff4f 100644 --- a/src/helpers/AnimatedVariable.hpp +++ b/src/helpers/AnimatedVariable.hpp @@ -128,10 +128,10 @@ public: case AVARTYPE_COLOR: return m_cValue != m_cGoal; default: - return false; + std::unreachable(); } - return false; // unreachable + std::unreachable(); } void warp() { @@ -149,7 +149,7 @@ public: break; } default: - break; + std::unreachable(); } } diff --git a/src/includes.hpp b/src/includes.hpp index 0c8df64d..b73a95ae 100644 --- a/src/includes.hpp +++ b/src/includes.hpp @@ -119,4 +119,5 @@ extern "C" { #include "ext-workspace-unstable-v1-protocol.h" -#include \ No newline at end of file +#include +#include \ No newline at end of file