From b5c0c9e599f37ba0c23daa0e843db8243427aef5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 6 Sep 2019 06:41:03 -0400 Subject: [PATCH] DolphinSmashAdapter: Make use of [[maybe_unused]] --- include/boo/inputdev/DolphinSmashAdapter.hpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/include/boo/inputdev/DolphinSmashAdapter.hpp b/include/boo/inputdev/DolphinSmashAdapter.hpp index d08d227..cae73c3 100644 --- a/include/boo/inputdev/DolphinSmashAdapter.hpp +++ b/include/boo/inputdev/DolphinSmashAdapter.hpp @@ -47,16 +47,10 @@ struct DolphinControllerState { }; struct IDolphinSmashAdapterCallback { - virtual void controllerConnected(unsigned idx, EDolphinControllerType type) { - (void)idx; - (void)type; - } - virtual void controllerDisconnected(unsigned idx) { (void)idx; } - virtual void controllerUpdate(unsigned idx, EDolphinControllerType type, const DolphinControllerState& state) { - (void)idx; - (void)type; - (void)state; - } + virtual void controllerConnected([[maybe_unused]] unsigned idx, [[maybe_unused]] EDolphinControllerType type) {} + virtual void controllerDisconnected([[maybe_unused]] unsigned idx) {} + virtual void controllerUpdate([[maybe_unused]] unsigned idx, [[maybe_unused]] EDolphinControllerType type, + [[maybe_unused]] const DolphinControllerState& state) {} }; class DolphinSmashAdapter final : public TDeviceBase {