diff --git a/src/TravelNode.h b/src/TravelNode.h index cf982558..52f276c0 100644 --- a/src/TravelNode.h +++ b/src/TravelNode.h @@ -66,8 +66,8 @@ class TravelNodePath //Constructor TravelNodePath(float distance = 0.1f, float extraCost = 0, uint8 pathType = (uint8)TravelNodePathType::walk, uint32 pathObject = 0, bool calculated = false, std::vector maxLevelCreature = { 0, 0, 0 }, float swimDistance = 0) - : extraCost(extraCost), distance(distance), pathType(TravelNodePathType(pathType)), calculated(calculated), pathObject(pathObject), // distance after extra cost, pathObject after calculated - whipowill - maxLevelCreature(maxLevelCreature), swimDistance(swimDistance) + : extraCost(extraCost), distance(distance), calculated(calculated), pathType(TravelNodePathType(pathType)), // reorder args - whipowill + maxLevelCreature(maxLevelCreature), pathObject(pathObject), swimDistance(swimDistance) // reorder args - whipowill { if (pathType != (uint8)TravelNodePathType::walk) complete = true; diff --git a/src/strategy/Action.h b/src/strategy/Action.h index 7df6678d..ba9316ab 100644 --- a/src/strategy/Action.h +++ b/src/strategy/Action.h @@ -71,7 +71,7 @@ class ActionNode { public: ActionNode(std::string const name, NextAction** prerequisites = nullptr, NextAction** alternatives = nullptr, NextAction** continuers = nullptr) : - name(name), action(nullptr), alternatives(alternatives), continuers(continuers), prerequisites(prerequisites) { } // reorder arguments - whipowill + name(name), action(nullptr), continuers(continuers), alternatives(alternatives), prerequisites(prerequisites) { } // reorder arguments - whipowill virtual ~ActionNode() { diff --git a/src/strategy/ItemVisitors.h b/src/strategy/ItemVisitors.h index 8bb521b0..b24f2aee 100644 --- a/src/strategy/ItemVisitors.h +++ b/src/strategy/ItemVisitors.h @@ -111,7 +111,7 @@ class FindItemsToTradeByClassVisitor : public IterateItemsVisitor { public: FindItemsToTradeByClassVisitor(uint32 itemClass, uint32 itemSubClass, uint32 count) - : IterateItemsVisitor(), count(count), itemClass(itemClass), itemSubClass(itemSubClass) { } + : IterateItemsVisitor(), itemClass(itemClass), count(count), itemSubClass(itemSubClass) { } // reorder args - whipowill bool Visit(Item* item) override { @@ -181,7 +181,7 @@ class QueryNamedItemCountVisitor : public QueryItemCountVisitor class FindNamedItemVisitor : public FindItemVisitor { public: - FindNamedItemVisitor(Player* bot, std::string const name) : FindItemVisitor(), name(name) { } + FindNamedItemVisitor([[maybe_unused]] Player* bot, std::string const name) : FindItemVisitor(), name(name) { } // unused param - whipowill bool Accept(ItemTemplate const* proto) override { diff --git a/src/strategy/Trigger.h b/src/strategy/Trigger.h index 5086970a..a2106609 100644 --- a/src/strategy/Trigger.h +++ b/src/strategy/Trigger.h @@ -39,7 +39,7 @@ class Trigger : public AiNamedObject class TriggerNode { public: - TriggerNode(std::string const name, NextAction** handlers = nullptr) : trigger(nullptr), name(name), handlers(handlers) { } // reorder args - whipowill + TriggerNode(std::string const name, NextAction** handlers = nullptr) : trigger(nullptr), handlers(handlers), name(name) { } // reorder args - whipowill virtual ~TriggerNode() { diff --git a/src/strategy/Value.h b/src/strategy/Value.h index ca168e70..60ebe666 100644 --- a/src/strategy/Value.h +++ b/src/strategy/Value.h @@ -24,7 +24,7 @@ class UntypedValue : public AiNamedObject virtual void Reset() { } virtual std::string const Format() { return "?"; } virtual std::string const Save() { return "?"; } - virtual bool Load(std::string const value) { return false; } + virtual bool Load([[maybe_unused]] std::string const value) { return false; } // unused param - whipowill }; template