diff options
Diffstat (limited to 'src/command/AllCommands.cxx')
-rw-r--r-- | src/command/AllCommands.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command/AllCommands.cxx b/src/command/AllCommands.cxx index ba9fc2f62..8797543a6 100644 --- a/src/command/AllCommands.cxx +++ b/src/command/AllCommands.cxx @@ -216,8 +216,8 @@ static constexpr unsigned num_commands = std::size(commands); gcc_pure static bool -command_available(gcc_unused const Partition &partition, - gcc_unused const struct command *cmd) noexcept +command_available([[maybe_unused]] const Partition &partition, + [[maybe_unused]] const struct command *cmd) noexcept { #ifdef ENABLE_SQLITE if (StringIsEqual(cmd->cmd, "sticker")) @@ -272,14 +272,14 @@ PrintUnavailableCommands(Response &r, unsigned permission) noexcept /* don't be fooled, this is the command handler for "commands" command */ static CommandResult -handle_commands(Client &client, gcc_unused Request request, Response &r) +handle_commands(Client &client, [[maybe_unused]] Request request, Response &r) { return PrintAvailableCommands(r, client.GetPartition(), client.GetPermission()); } static CommandResult -handle_not_commands(Client &client, gcc_unused Request request, Response &r) +handle_not_commands(Client &client, [[maybe_unused]] Request request, Response &r) { return PrintUnavailableCommands(r, client.GetPermission()); } |