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:
parent
9c348d057e
commit
5e6d144567
5 changed files with 11 additions and 7 deletions
|
@ -65,6 +65,7 @@ std::string RollbackAction::toString() const
|
|||
os << ", " << itos(n_new.param2);
|
||||
os << ", " << serializeJsonString(n_new.meta);
|
||||
os << ')';
|
||||
break;
|
||||
case TYPE_MODIFY_INVENTORY_STACK:
|
||||
os << "modify_inventory_stack (";
|
||||
os << serializeJsonString(inventory_location);
|
||||
|
@ -73,6 +74,7 @@ std::string RollbackAction::toString() const
|
|||
os << ", " << (inventory_add ? "add" : "remove");
|
||||
os << ", " << serializeJsonString(inventory_stack.getItemString());
|
||||
os << ')';
|
||||
break;
|
||||
default:
|
||||
return "<unknown action>";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue