Remove static keyword from template
Clang warns on these templates not being used, each of which use a
static modifier in a header file. Given we're in a header, this likely
means that this static modifier isn't really doing anything, given that
every compile unit will include the header.
Remove static to shut clang up.
Change-Id: I50c33738e4567150eeddf9e6ded0dc24db14c78d
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/include/sdbusplus/message/append.hpp b/include/sdbusplus/message/append.hpp
index e695b6f..d198994 100644
--- a/include/sdbusplus/message/append.hpp
+++ b/include/sdbusplus/message/append.hpp
@@ -335,8 +335,8 @@
};
template <typename T>
-static void tuple_item_append(sdbusplus::SdBusInterface* intf,
- sd_bus_message* m, T&& t)
+void tuple_item_append(sdbusplus::SdBusInterface* intf, sd_bus_message* m,
+ T&& t)
{
sdbusplus::message::append(intf, m, t);
}
diff --git a/include/sdbusplus/message/read.hpp b/include/sdbusplus/message/read.hpp
index 4fb501d..5cf0928 100644
--- a/include/sdbusplus/message/read.hpp
+++ b/include/sdbusplus/message/read.hpp
@@ -464,8 +464,7 @@
};
template <typename T>
-static void tuple_item_read(sdbusplus::SdBusInterface* intf, sd_bus_message* m,
- T&& t)
+void tuple_item_read(sdbusplus::SdBusInterface* intf, sd_bus_message* m, T&& t)
{
sdbusplus::message::read(intf, m, t);
}