From 3a1c46ff751a96dfdc721190a93be3954929725e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 4 Jan 2023 16:18:46 +0100 Subject: Explicitly mark unused parameters This allows us to separate accidentally unused, from explicitly unused parameters, which allows us to turn on such checks in the compiler. --- win/vncconfig/Sharing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/vncconfig/Sharing.h') diff --git a/win/vncconfig/Sharing.h b/win/vncconfig/Sharing.h index 872ae133..4dcb1db9 100644 --- a/win/vncconfig/Sharing.h +++ b/win/vncconfig/Sharing.h @@ -36,7 +36,7 @@ namespace rfb { setItemChecked(IDC_SHARE_ALWAYS, rfb::Server::alwaysShared); setItemChecked(IDC_SHARE_CLIENT, !(rfb::Server::neverShared || rfb::Server::alwaysShared)); } - bool onCommand(int id, int cmd) { + bool onCommand(int /*id*/, int /*cmd*/) { setChanged((isItemChecked(IDC_DISCONNECT_CLIENTS) != rfb::Server::disconnectClients) || (isItemChecked(IDC_SHARE_NEVER) != rfb::Server::neverShared) || (isItemChecked(IDC_SHARE_ALWAYS) != rfb::Server::alwaysShared)); -- cgit v1.2.3