From effc2e60b4e0d39827eaaaf0b9641a27b67155f6 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Wed, 4 Dec 2024 06:46:46 -0500 Subject: [PATCH] wsd: maybe_unused in verifyWOPISrc Change-Id: I20799f703cfb43a42b3831cbfe47c2c9078044c9 Signed-off-by: Ashod Nakashian --- net/HttpHelper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/HttpHelper.hpp b/net/HttpHelper.hpp index 29ba0a5529c97..675d93378f6aa 100644 --- a/net/HttpHelper.hpp +++ b/net/HttpHelper.hpp @@ -46,7 +46,7 @@ void sendFile(const std::shared_ptr& socket, const std::string& pa /// The idea is to only warn in release builds, but to help developers in debug builds. /// Returns false only in debug build. inline bool verifyWOPISrc(const std::string& uri, const std::string& wopiSrc, - const std::shared_ptr& socket = {}) + [[maybe_unused]] const std::shared_ptr& socket = {}) { // getQueryParameters(), which is used to extract wopiSrc, decodes the values. // Compare with the URI. WopiSrc is complex enough to require encoding.