summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-11-12 14:26:20 +0000
committerSadie Powell <sadie@witchery.services>2020-11-12 14:26:20 +0000
commita68424a611e37f16ba8593bf630a77d49d98708d (patch)
tree337950e05afaec0ea74fb8f9d50fc46ccda85a24
parent713842fef7f2578ed467eccedf4ceaaf85ce737f (diff)
Silence a harmless warning in newer versions of GCC.
-rw-r--r--include/clientprotocol.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clientprotocol.h b/include/clientprotocol.h
index 16f08a6f6..29035250d 100644
--- a/include/clientprotocol.h
+++ b/include/clientprotocol.h
@@ -239,13 +239,15 @@ class ClientProtocol::Message : public ClientProtocol::MessageSource
}
Param(int, const char* s)
- : owned(true)
+ : ptr(NULL)
+ , owned(true)
{
new(str) std::string(s);
}
Param(int, const std::string& s)
- : owned(true)
+ : ptr(NULL)
+ , owned(true)
{
new(str) std::string(s);
}