forked from Kistler-Group/sdbus-cpp
Fix clang-9 warnings
This commit is contained in:
@ -71,7 +71,7 @@ namespace sdbus {
|
||||
* of @c IObject and @c IProxy.
|
||||
*
|
||||
***********************************************/
|
||||
class Message
|
||||
class [[nodiscard]] Message
|
||||
{
|
||||
public:
|
||||
Message& operator<<(bool item);
|
||||
@ -275,7 +275,7 @@ namespace sdbus {
|
||||
template <typename... _Args>
|
||||
void serialize_pack(Message& msg, _Args&&... args)
|
||||
{
|
||||
(msg << ... << args);
|
||||
(void)(msg << ... << args);
|
||||
}
|
||||
|
||||
template <class _Tuple, std::size_t... _Is>
|
||||
@ -367,7 +367,7 @@ namespace sdbus {
|
||||
template <typename... _Args>
|
||||
void deserialize_pack(Message& msg, _Args&... args)
|
||||
{
|
||||
(msg >> ... >> args);
|
||||
(void)(msg >> ... >> args);
|
||||
}
|
||||
|
||||
template <class _Tuple, std::size_t... _Is>
|
||||
|
@ -488,7 +488,7 @@ namespace sdbus {
|
||||
static const std::string str()
|
||||
{
|
||||
std::string signature;
|
||||
(signature += ... += signature_of<std::decay_t<_Types>>::str());
|
||||
(void)(signature += ... += signature_of<std::decay_t<_Types>>::str());
|
||||
return signature;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user