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/include/event_service_manager.hpp b/redfish-core/include/event_service_manager.hpp
index 9349cd8..642a302 100644
--- a/redfish-core/include/event_service_manager.hpp
+++ b/redfish-core/include/event_service_manager.hpp
@@ -500,7 +500,7 @@
     }
 #endif
 
-    void filterAndSendReports(const std::string& id,
+    void filterAndSendReports(const std::string& reportId,
                               const telemetry::TimestampReadings& var)
     {
         std::string mrdUri = telemetry::metricReportDefinitionUri + ("/" + id);
@@ -517,11 +517,11 @@
         }
 
         nlohmann::json msg;
-        if (!telemetry::fillReport(msg, id, var))
+        if (!telemetry::fillReport(msg, reportId, var))
         {
             BMCWEB_LOG_ERROR << "Failed to fill the MetricReport for DBus "
                                 "Report with id "
-                             << id;
+                             << reportId;
             return;
         }
 
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();