From 6979582bef906b433ecf63e80bb5ed51b596d8c0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 24 Mar 2024 14:12:06 +0100 Subject: fix -Wswitch-default --- src/chunk-walls.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/chunk-walls.cpp') diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index b9085531..13f42ead 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -44,8 +44,8 @@ constexpr Quads::quad get_quad(Direction_ D, Group_ G, float depth) switch (G) { using enum Group_; - case COUNT: - std::unreachable(); + default: + fm_abort("invalid wall_atlas group '%d'", (int)G); case wall: if (!is_west) return {{ @@ -107,8 +107,6 @@ constexpr Quads::quad get_quad(Direction_ D, Group_ G, float depth) {-X, -Y, Z }, }}; } - std::unreachable(); - fm_abort("invalid wall_atlas group '%d'", (int)G); } Array make_indexes_() -- cgit v1.2.3