aboutgitcodebugslistschat
path: root/packet.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-06-08 11:08:29 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-06-08 11:08:29 +0200
commitdeda03bfc2fdcceb8a48ffa462d73d029e80e342 (patch)
tree2c8a5bcbf6bca33364d36564695d07f55f6a7a4f /packet.h
parentfb59cfc9093b2c68d5fa65bb6eb4d4042dab0593 (diff)
downloadpasst-deda03bfc2fdcceb8a48ffa462d73d029e80e342.tar
passt-deda03bfc2fdcceb8a48ffa462d73d029e80e342.tar.gz
passt-deda03bfc2fdcceb8a48ffa462d73d029e80e342.tar.bz2
passt-deda03bfc2fdcceb8a48ffa462d73d029e80e342.tar.lz
passt-deda03bfc2fdcceb8a48ffa462d73d029e80e342.tar.xz
passt-deda03bfc2fdcceb8a48ffa462d73d029e80e342.tar.zst
passt-deda03bfc2fdcceb8a48ffa462d73d029e80e342.zip
tcp: Silence warning from gcc 11.3 with -Ofast
If the first packet_get() call doesn't assign len, the second one will also return NULL, but gcc doesn't see this. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet.h b/packet.h
index abd6041..8fa36d6 100644
--- a/packet.h
+++ b/packet.h
@@ -40,10 +40,10 @@ void *packet_get_do(const struct pool *p, const size_t index,
void pool_flush(struct pool *p);
#define packet_add(p, len, start) \
- packet_add_do(p, len, start, __func__, __LINE__);
+ packet_add_do(p, len, start, __func__, __LINE__)
#define packet_get(p, index, offset, len, left) \
- packet_get_do(p, index, offset, len, left, __func__, __LINE__);
+ packet_get_do(p, index, offset, len, left, __func__, __LINE__)
#define packet_get_try(p, index, offset, len, left) \
packet_get_do(p, index, offset, len, left, NULL, 0)