From: Sadie Powell Date: Thu, 12 Nov 2020 14:26:20 +0000 (+0000) Subject: Silence a harmless warning in newer versions of GCC. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=a68424a611e37f16ba8593bf630a77d49d98708d;hp=713842fef7f2578ed467eccedf4ceaaf85ce737f;p=user%2Fhenk%2Fcode%2Finspircd.git Silence a harmless warning in newer versions of GCC. --- 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); }