Make code compile on clang again
The usual updates to make code compile on clang again. Extra semicolons
that have snuck in, missing inline and static definitions.
Tested: Code compiles on clang.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Id7f889de98cafaa89471d75ed3e3bb97ab3855cd
diff --git a/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp
index b09b582..0c4203d 100644
--- a/redfish-core/lib/sensors.hpp
+++ b/redfish-core/lib/sensors.hpp
@@ -47,12 +47,12 @@
// clang-format off
namespace dbus
{
-auto powerPaths = std::to_array<std::string_view>({
+static auto powerPaths = std::to_array<std::string_view>({
"/xyz/openbmc_project/sensors/voltage",
"/xyz/openbmc_project/sensors/power"
});
-auto sensorPaths = std::to_array<std::string_view>({
+static auto sensorPaths = std::to_array<std::string_view>({
"/xyz/openbmc_project/sensors/power",
"/xyz/openbmc_project/sensors/current",
"/xyz/openbmc_project/sensors/airflow",
@@ -68,7 +68,7 @@
"/xyz/openbmc_project/sensors/utilization"
});
-auto thermalPaths = std::to_array<std::string_view>({
+static auto thermalPaths = std::to_array<std::string_view>({
"/xyz/openbmc_project/sensors/fan_tach",
"/xyz/openbmc_project/sensors/temperature",
"/xyz/openbmc_project/sensors/fan_pwm"