log_service: crashdump entry: remove app
clang14 complains about
"lambda capture 'app' is not used [-Werror,-Wunused-lambda-capture]".
This commit removes app. Originally app is used in Redfish route but we
removed that since crashdump files are not Redfish resources.
Tested: code compiles. Strong type guarantees the correctness.
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I935906097fdae3f975f2435adc4964bb7dd3875f
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index 3b1da0e..a10075a 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -2923,9 +2923,9 @@
"/redfish/v1/Systems/system/LogServices/Crashdump/Entries/<str>/<str>/")
.privileges(redfish::privileges::getLogEntry)
.methods(boost::beast::http::verb::get)(
- [&app](const crow::Request& req,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const std::string& logID, const std::string& fileName) {
+ [](const crow::Request& req,
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+ const std::string& logID, const std::string& fileName) {
// Do not call getRedfishRoute here since the crashdump file is not a
// Redfish resource.
auto getStoredLogCallback =