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:
parent
1f9c89f559
commit
c77adf6847
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue