build: fix -Wmissing-prototype
This helps make the author's original intent clear. Tested by building
and running the unit tests with clang.
Change-Id: If0231ec5634adad0b61e7fcff8ec1e5bcbbb92c1
Signed-off-by: Brad Bishop <bradbish@qti.qualcomm.com>
diff --git a/src/test/util/association_objects.hpp b/src/test/util/association_objects.hpp
index e9fd016..f7c17a2 100644
--- a/src/test/util/association_objects.hpp
+++ b/src/test/util/association_objects.hpp
@@ -10,7 +10,7 @@
const std::string extraEndpoint = "/xyz/openbmc_project/different/endpoint";
// Create a default AssociationOwnersType object
-AssociationOwnersType createDefaultOwnerAssociation()
+inline AssociationOwnersType createDefaultOwnerAssociation()
{
AssociationPaths assocPathMap = {{defaultFwdPath, {defaultEndpoint}},
{defaultRevPath, {defaultSourcePath}}};
@@ -21,7 +21,7 @@
}
// Create a default AssociationInterfaces object
-AssociationInterfaces createDefaultInterfaceAssociation(
+inline AssociationInterfaces createDefaultInterfaceAssociation(
sdbusplus::asio::object_server* server)
{
AssociationInterfaces interfaceAssoc;
@@ -40,7 +40,8 @@
}
// Just add an extra endpoint to the first association
-void addEndpointToInterfaceAssociation(AssociationInterfaces& interfaceAssoc)
+inline void addEndpointToInterfaceAssociation(
+ AssociationInterfaces& interfaceAssoc)
{
auto iface = interfaceAssoc[defaultFwdPath];
auto endpoints = std::get<endpointsPos>(iface);
@@ -48,9 +49,9 @@
}
// Create a default interfaceMapType with input values
-InterfaceMapType createInterfaceMap(const std::string& path,
- const std::string& connectionName,
- const InterfaceNames& interfaceNames)
+inline InterfaceMapType createInterfaceMap(const std::string& path,
+ const std::string& connectionName,
+ const InterfaceNames& interfaceNames)
{
ConnectionNames connectionMap{{connectionName, interfaceNames}};
InterfaceMapType interfaceMap{{path, connectionMap}};
@@ -60,7 +61,7 @@
// Create a default interfaceMapType with 2 entries with the same
// owner.
-InterfaceMapType createDefaultInterfaceMap()
+inline InterfaceMapType createDefaultInterfaceMap()
{
InterfaceMapType interfaceMap = {
{defaultSourcePath, {{defaultDbusSvc, {"a"}}}},