mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Enable -Wimplicit-fallthrough and use [[fallthrough]] attribute
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user