1
0

Mark UNREACHABLE with intrinsics

This commit is contained in:
Tiger Wang
2021-02-20 16:24:13 +00:00
parent 6aa1d13508
commit 81e299f00c
18 changed files with 27 additions and 56 deletions

View File

@@ -133,7 +133,6 @@ std::string_view NamespaceSerializer::From(const Statistic a_ID)
case Statistic::AchBreedCow: return "cuberite:achievement.breedCow";
case Statistic::AchDiamondsToYou: return "cuberite:achievement.diamondsToYou";
}
UNREACHABLE("Tried to save unhandled statistic");
}
@@ -216,7 +215,6 @@ std::string_view NamespaceSerializer::From(eMonsterType a_ID)
case mtZombieVillager: return "zombie_villager";
case mtInvalidType: break;
}
UNREACHABLE("Tried to save unknown monster type");
}