From fd1d490163b3226a7fc10ba770a31cee66426b13 Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Fri, 6 Dec 2019 12:24:27 -0600 Subject: [PATCH] Fix tailor plugin switch statement warnings (no functionality change) --- plugins/tailor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/tailor.cpp b/plugins/tailor.cpp index 6ac308258..4ab6dc4f7 100644 --- a/plugins/tailor.cpp +++ b/plugins/tailor.cpp @@ -245,6 +245,7 @@ void do_scan(color_ostream& out) case df::item_type::HELM: v = entity->resources.helm_type; break; case df::item_type::PANTS: v = entity->resources.pants_type; break; case df::item_type::SHOES: v = entity->resources.shoes_type; break; + default: break; } for (auto vv : v) { @@ -255,6 +256,7 @@ void do_scan(color_ostream& out) case df::item_type::HELM: isClothing = world->raws.itemdefs.helms[vv] ->armorlevel == 0; break; case df::item_type::PANTS: isClothing = world->raws.itemdefs.pants[vv] ->armorlevel == 0; break; case df::item_type::SHOES: isClothing = world->raws.itemdefs.shoes[vv] ->armorlevel == 0; break; + default: break; } if (isClothing) { @@ -332,6 +334,8 @@ void do_scan(color_ostream& out) v = entity->resources.shoes_type; fl = &world->raws.itemdefs.shoes[sub]->props.flags; break; + default: + break; } bool can_make = false; @@ -356,6 +360,7 @@ void do_scan(color_ostream& out) case df::item_type::HELM: break; case df::item_type::PANTS: break; case df::item_type::SHOES: break; + default: break; } df::job_material_category mat;