Fix missing inlines
This shows up as a warning in clang
Tested:
Code compiles in clang now
Change-Id: Icb2bed0a489c4bbaa85ad365602a3cd547a4fe6c
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/redfish-core/lib/cpudimm.hpp b/redfish-core/lib/cpudimm.hpp
index 7b5ca43..4f387fc 100644
--- a/redfish-core/lib/cpudimm.hpp
+++ b/redfish-core/lib/cpudimm.hpp
@@ -434,8 +434,8 @@
using DimmProperties = boost::container::flat_map<std::string, DimmProperty>;
-void dimmPropToHex(std::shared_ptr<AsyncResp> aResp, const char* key,
- const std::pair<std::string, DimmProperty>& property)
+inline void dimmPropToHex(std::shared_ptr<AsyncResp> aResp, const char* key,
+ const std::pair<std::string, DimmProperty>& property)
{
const uint16_t* value = std::get_if<uint16_t>(&property.second);
if (value == nullptr)
@@ -448,8 +448,8 @@
aResp->res.jsonValue[key] = (boost::format("0x%04x") % *value).str();
}
-void getPersistentMemoryProperties(std::shared_ptr<AsyncResp> aResp,
- const DimmProperties& properties)
+inline void getPersistentMemoryProperties(std::shared_ptr<AsyncResp> aResp,
+ const DimmProperties& properties)
{
for (const auto& property : properties)
{
@@ -696,9 +696,10 @@
}
}
-void getDimmDataByService(std::shared_ptr<AsyncResp> aResp,
- const std::string& dimmId, const std::string& service,
- const std::string& objPath)
+inline void getDimmDataByService(std::shared_ptr<AsyncResp> aResp,
+ const std::string& dimmId,
+ const std::string& service,
+ const std::string& objPath)
{
auto health = std::make_shared<HealthPopulate>(aResp);
health->selfPath = objPath;