From c77adf6847bd1087be9fe450dfa24e258612370f Mon Sep 17 00:00:00 2001 From: Philipp Jungkamp Date: Mon, 19 Jun 2023 19:47:50 +0200 Subject: [PATCH] villas-relay: inhibit gcc warning false positive Signed-off-by: Philipp Jungkamp --- src/villas-relay.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/villas-relay.hpp b/src/villas-relay.hpp index 5d0bb2fe1..ad3037384 100644 --- a/src/villas-relay.hpp +++ b/src/villas-relay.hpp @@ -31,6 +31,7 @@ typedef std::string Identifier; class Frame : public std::vector { public: Frame() { + reserve(LWS_PRE); /* lws_write() requires LWS_PRE bytes in front of the payload */ insert(end(), LWS_PRE, 0); }