Skip to content

Commit

Permalink
wsd: maybe_unused in verifyWOPISrc
Browse files Browse the repository at this point in the history
Change-Id: I20799f703cfb43a42b3831cbfe47c2c9078044c9
Signed-off-by: Ashod Nakashian <[email protected]>
  • Loading branch information
Ashod committed Dec 5, 2024
1 parent 1dd0e86 commit effc2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/HttpHelper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void sendFile(const std::shared_ptr<StreamSocket>& 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<StreamSocket>& socket = {})
[[maybe_unused]] const std::shared_ptr<StreamSocket>& socket = {})
{
// getQueryParameters(), which is used to extract wopiSrc, decodes the values.
// Compare with the URI. WopiSrc is complex enough to require encoding.
Expand Down

0 comments on commit effc2e6

Please sign in to comment.