summaryrefslogtreecommitdiff
path: root/redfish-core/lib
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-05-28 19:42:51 +0300
committerEd Tanous <ed@tanous.net>2022-06-02 18:54:36 +0300
commit4ee8e21100dbc8cefd941b9728c740189c4e81b8 (patch)
tree4497fd8ee08ce6ecd39f79a0375d94b9f44f43ff /redfish-core/lib
parent71f2db758154e3a0e1b5dbd4698f5dddd31c10c0 (diff)
downloadbmcweb-4ee8e21100dbc8cefd941b9728c740189c4e81b8.tar.xz
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
Diffstat (limited to 'redfish-core/lib')
-rw-r--r--redfish-core/lib/redfish_sessions.hpp2
-rw-r--r--redfish-core/lib/sensors.hpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/redfish-core/lib/redfish_sessions.hpp b/redfish-core/lib/redfish_sessions.hpp
index 89008c92b9..05e7fdc735 100644
--- a/redfish-core/lib/redfish_sessions.hpp
+++ b/redfish-core/lib/redfish_sessions.hpp
@@ -151,7 +151,7 @@ inline void handleSessionCollectionMembersGet(
asyncResp->res.jsonValue = getSessionCollectionMembers();
}
-void handleSessionCollectionPost(
+inline void handleSessionCollectionPost(
crow::App& app, const crow::Request& req,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
{
diff --git a/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp
index b09b582cb0..0c4203d14c 100644
--- a/redfish-core/lib/sensors.hpp
+++ b/redfish-core/lib/sensors.hpp
@@ -47,12 +47,12 @@ static constexpr std::string_view thermal = "Thermal";
// 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 @@ auto sensorPaths = std::to_array<std::string_view>({
"/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"