remove gcc_unused
[[maybe_unused]] (introduced in C++17) is standard C++. https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused says that this is equivalent to the GNU unused attribute. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -27,15 +27,15 @@
|
||||
#include "util/StringAPI.hxx"
|
||||
|
||||
CommandResult
|
||||
handle_close(gcc_unused Client &client, gcc_unused Request args,
|
||||
gcc_unused Response &r)
|
||||
handle_close([[maybe_unused]] Client &client, [[maybe_unused]] Request args,
|
||||
[[maybe_unused]] Response &r)
|
||||
{
|
||||
return CommandResult::FINISH;
|
||||
}
|
||||
|
||||
CommandResult
|
||||
handle_ping(gcc_unused Client &client, gcc_unused Request args,
|
||||
gcc_unused Response &r)
|
||||
handle_ping([[maybe_unused]] Client &client, [[maybe_unused]] Request args,
|
||||
[[maybe_unused]] Response &r)
|
||||
{
|
||||
return CommandResult::OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user