diff --git a/src/TravelMgr.h b/src/TravelMgr.h index 316d4a53..8d574e33 100644 --- a/src/TravelMgr.h +++ b/src/TravelMgr.h @@ -346,7 +346,7 @@ inline ByteBuffer& operator<<(ByteBuffer& b, WorldPosition& guidP) return b; } -inline ByteBuffer& operator>>(ByteBuffer& b) // additional argument "WorldPosition& g" was unused - whipowill +inline ByteBuffer& operator>>(ByteBuffer& b, [[maybe_unused]] WorldPosition& g) // unused param - whipowill { uint32 mapid; float coord_x; diff --git a/src/strategy/Action.h b/src/strategy/Action.h index ffaa839c..7df6678d 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), prerequisites(prerequisites), continuers(continuers) { } // action after name, prereq after alternatives - whipowill + name(name), action(nullptr), alternatives(alternatives), continuers(continuers), prerequisites(prerequisites) { } // reorder arguments - whipowill virtual ~ActionNode() { diff --git a/src/strategy/Multiplier.h b/src/strategy/Multiplier.h index a3a67b01..65c5bf55 100644 --- a/src/strategy/Multiplier.h +++ b/src/strategy/Multiplier.h @@ -16,7 +16,7 @@ class Multiplier : public AiNamedObject Multiplier(PlayerbotAI* botAI, std::string const name) : AiNamedObject(botAI, name) {} virtual ~Multiplier() { } - virtual float GetValue(Action* action) { return 1.0f; } + virtual float GetValue([[maybe_unused]] Action* action) { return 1.0f; } // unused param - whipowill }; #endif diff --git a/src/strategy/Trigger.h b/src/strategy/Trigger.h index 10865a42..5086970a 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) : name(name), trigger(nullptr), handlers(handlers) { } // name after handlers, handlers after trigger - whipowill + TriggerNode(std::string const name, NextAction** handlers = nullptr) : trigger(nullptr), name(name), handlers(handlers) { } // reorder args - whipowill virtual ~TriggerNode() { diff --git a/src/strategy/Value.h b/src/strategy/Value.h index 50de7262..ca168e70 100644 --- a/src/strategy/Value.h +++ b/src/strategy/Value.h @@ -135,7 +135,7 @@ class MemoryCalculatedValue : public CalculatedValue return true; } - void Set(T value) override + void Set([[maybe_unused]] T value) override // unused param - whipowill { CalculatedValue::Set(this->value); UpdateChange();