From 1a563a0cbd4926d0dfe9065a4fcd8771c5b292cc Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 19 Oct 2021 17:28:18 +0200 Subject: passt: Address gcc 11 warnings A mix of unchecked return values, a missing permission mask for open(2) with O_CREAT, and some false positives from -Wstringop-overflow and -Wmaybe-uninitialized. Reported-by: Martin Hauke Signed-off-by: Stefano Brivio --- siphash.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'siphash.c') diff --git a/siphash.c b/siphash.c index b7a7861..88f8bd2 100644 --- a/siphash.c +++ b/siphash.c @@ -146,6 +146,9 @@ uint32_t siphash_12b(const uint8_t *in, const uint64_t *k) * * Return: the 64-bit hash output */ +#if SIPHASH_20B_NOINLINE +__attribute__((__noinline__)) /* See comment in Makefile */ +#endif uint64_t siphash_20b(const uint8_t *in, const uint64_t *k) { uint32_t *in32 = (uint32_t *)in; -- cgit v1.2.3