Skip to content

Commit

Permalink
fix switch warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Mar 23, 2024
1 parent 8287a6a commit 36bdeef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/critter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ constexpr std::array<rotation, 3> rotation_to_similar(rotation r)
case SW: return { SW, S, W };
case W: return { W, SW, NW };
case NW: return { NW, W, N };
default:
std::unreachable();
fm_assert(false);
}
std::unreachable();
fm_assert(false);

}

} // namespace
Expand Down
1 change: 1 addition & 0 deletions src/scenery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ scenery_variants scenery::subtype_from_scenery_type(object_id id, class chunk& c
case scenery_type::door:
return door_scenery{id, c, {}};
case scenery_type::none:
default:
break;
}
fm_throw("invalid scenery type"_cf, (int)type);
Expand Down

0 comments on commit 36bdeef

Please sign in to comment.