From bd2aa935bfc2b377481ca5900d0d89168a507eae Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 25 Feb 2024 19:14:32 +0100 Subject: fix clangd warnings --- src/chunk-collision.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp index b6ac2745..bbbacaca 100644 --- a/src/chunk-collision.cpp +++ b/src/chunk-collision.cpp @@ -122,6 +122,8 @@ void chunk::_replace_bbox(const bbox& x0, const bbox& x1, bool b0, bool b1) return; case 0 << 1 | 0 << 0: return; + default: + break; } std::unreachable(); } @@ -132,6 +134,7 @@ bool chunk::can_place_object(const object_proto& proto, local_coords pos) switch (proto.pass) { + default: case pass_mode::blocked: case pass_mode::see_through: break; -- cgit v1.2.3