1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

villas-relay: inhibit gcc warning false positive

Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
This commit is contained in:
Philipp Jungkamp 2023-06-19 19:47:50 +02:00
parent 1f9c89f559
commit c77adf6847

View file

@ -31,6 +31,7 @@ typedef std::string Identifier;
class Frame : public std::vector<uint8_t> {
public:
Frame() {
reserve(LWS_PRE);
/* lws_write() requires LWS_PRE bytes in front of the payload */
insert(end(), LWS_PRE, 0);
}