From 1ba957eb6096c1df1e6476cccea5dbd3ec3b189d Mon Sep 17 00:00:00 2001 From: MatthiasWM Date: Fri, 31 Oct 2025 19:15:38 +0100 Subject: Fix MSVC Level 4 warnings (#1126) --- fluid/app/Snap_Action.h | 2 +- fluid/nodes/Node.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'fluid') diff --git a/fluid/app/Snap_Action.h b/fluid/app/Snap_Action.h index e555f9a44..e5f4c998a 100644 --- a/fluid/app/Snap_Action.h +++ b/fluid/app/Snap_Action.h @@ -188,7 +188,7 @@ public: Snap_Action() : ex(0x7fff), ey(0x7fff), dx(128), dy(128), type(0), mask(0) { } virtual ~Snap_Action() { } virtual void check(Snap_Data &d) = 0; - virtual void draw(Snap_Data &d) { } + virtual void draw(Snap_Data &d) { (void)d; } virtual bool matches(Snap_Data &d); public: static int eex, eey; diff --git a/fluid/nodes/Node.h b/fluid/nodes/Node.h index 64d720297..a5882233a 100644 --- a/fluid/nodes/Node.h +++ b/fluid/nodes/Node.h @@ -240,8 +240,8 @@ public: virtual Node* click_test(int,int) { return nullptr; } - virtual void add_child(Node*, Node* beforethis) { } - virtual void move_child(Node*, Node* beforethis) { } + virtual void add_child(Node *, Node *beforethis) { (void)beforethis; } + virtual void move_child(Node *, Node *beforethis) { (void)beforethis; } virtual void remove_child(Node*) { } /** Give widgets a chance to arrange their children after all children were added. -- cgit v1.2.3