Add [[maybe_unused]] to silence unhelpful warnings

Este commit está contenido en:
2021-10-25 17:56:37 +02:00
padre 0aa4bca6cc
commit 6304554358
Se han modificado 13 ficheros con 39 adiciones y 38 borrados

Ver fichero

@@ -20,12 +20,12 @@ SOFTWARE.
*/
#include "handlerinvalidaction.h"
Response HandlerInvalidAction::handleRequest(const Request &r)
Response HandlerInvalidAction::handleRequest([[maybe_unused]] const Request &r)
{
return errorResponse("Invalid action", "No action defined for this action");
}
bool HandlerInvalidAction::canAccess(const Permissions &perms)
bool HandlerInvalidAction::canAccess([[maybe_unused]] const Permissions &perms)
{
return true;
}