1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +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

@ -440,6 +440,7 @@ void Hud::drawLuaElements(const v3s16 &camera_offset)
case HUD_ELEM_IMAGE_WAYPOINT: {
if (!calculateScreenPos(camera_offset, e, &pos))
break;
[[fallthrough]];
}
case HUD_ELEM_IMAGE: {
video::ITexture *texture = tsrc->getTexture(e->text);