summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-collision.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-25 19:14:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-25 19:14:32 +0100
commitbd2aa935bfc2b377481ca5900d0d89168a507eae (patch)
tree38a3046aa14436bf42e705dfebe70586319031dc /src/chunk-collision.cpp
parent471a3c5053719d18e8802ab73d4d0849b28380c2 (diff)
fix clangd warnings
Diffstat (limited to 'src/chunk-collision.cpp')
-rw-r--r--src/chunk-collision.cpp3
1 files changed, 3 insertions, 0 deletions
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;