1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Enable -Wimplicit-fallthrough and use [[fallthrough]] attribute

This commit is contained in:
Desour 2023-06-12 22:23:32 +02:00 committed by sfan5
parent 9c348d057e
commit 5e6d144567
5 changed files with 11 additions and 7 deletions

View file

@ -478,6 +478,7 @@ TileDef read_tiledef(lua_State *L, int index, u8 drawtype, bool special)
// "break" is omitted here intentionaly, as PLANTLIKE
// FIRELIKE drawtype both should default to having
// backface_culling to false.
[[fallthrough]];
case NDT_MESH:
case NDT_LIQUID:
default_culling = false;