summaryrefslogtreecommitdiff
path: root/redfish-core/lib/trigger.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-01-04 23:47:01 +0300
committerEd Tanous <ed@tanous.net>2022-01-05 23:07:08 +0300
commit248d02303212eb1b7b9a81757489a23af36546a8 (patch)
treeecae6fbf55b5e9d25268397b9ad41e377effab47 /redfish-core/lib/trigger.hpp
parent1ec43ee36d52f415261b27653b1ba6311ebb5bfe (diff)
downloadbmcweb-248d02303212eb1b7b9a81757489a23af36546a8.tar.xz
Make code compile with clang
One minor shadowed variable that needed it's name changed, and a missing inline statement. Tested: Code now builds in clang-13 Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I83b662a2818e1469dfeb29b818338346e40cb832
Diffstat (limited to 'redfish-core/lib/trigger.hpp')
-rw-r--r--redfish-core/lib/trigger.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/trigger.hpp b/redfish-core/lib/trigger.hpp
index 210468c761..bb0a0e2ac3 100644
--- a/redfish-core/lib/trigger.hpp
+++ b/redfish-core/lib/trigger.hpp
@@ -137,7 +137,7 @@ inline std::optional<nlohmann::json>
return std::make_optional(thresholds);
}
-nlohmann::json
+inline nlohmann::json
getMetricReportDefinitions(const std::vector<std::string>& reportNames)
{
nlohmann::json reports = nlohmann::json::array();