summaryrefslogtreecommitdiff
path: root/include/authentication.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-12-20 00:48:12 +0300
committerEd Tanous <edtanous@google.com>2023-05-26 01:10:11 +0300
commit1d869608fb671a2c5e80563c9fa8c630aa728346 (patch)
tree43e078dba3e99077ce82efa91d20b343faffe70a /include/authentication.hpp
parent185444b1dd5f28702e287c4ce7f7b6558356519b (diff)
downloadbmcweb-1d869608fb671a2c5e80563c9fa8c630aa728346.tar.xz
Add maybe_unused to possibly unused argument
There are cases in this method where if CSRF protection is disabled, this argument will not be used, and will trigger a compile error. This commit fixes the compile error. Tested: Code compiles with CSRF disabled option set. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I6daa5193fa162c73c57991600058c198dc38a418
Diffstat (limited to 'include/authentication.hpp')
-rw-r--r--include/authentication.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/authentication.hpp b/include/authentication.hpp
index 18e782266f..4897c0e529 100644
--- a/include/authentication.hpp
+++ b/include/authentication.hpp
@@ -124,7 +124,7 @@ static std::shared_ptr<persistent_data::UserSession>
#ifdef BMCWEB_ENABLE_COOKIE_AUTHENTICATION
static std::shared_ptr<persistent_data::UserSession>
- performCookieAuth(boost::beast::http::verb method,
+ performCookieAuth(boost::beast::http::verb method [[maybe_unused]],
const boost::beast::http::header<true>& reqHeader)
{
BMCWEB_LOG_DEBUG << "[AuthMiddleware] Cookie authentication";