From a68424a611e37f16ba8593bf630a77d49d98708d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 12 Nov 2020 14:26:20 +0000 Subject: Silence a harmless warning in newer versions of GCC. --- include/clientprotocol.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') 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); } -- cgit v1.2.3