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
diff --git a/redfish-core/lib/trigger.hpp b/redfish-core/lib/trigger.hpp
index 210468c..bb0a0e2 100644
--- a/redfish-core/lib/trigger.hpp
+++ b/redfish-core/lib/trigger.hpp
@@ -137,7 +137,7 @@
     return std::make_optional(thresholds);
 }
 
-nlohmann::json
+inline nlohmann::json
     getMetricReportDefinitions(const std::vector<std::string>& reportNames)
 {
     nlohmann::json reports = nlohmann::json::array();