From 8bd1b5228c0b7c708d64b3020767763c56bbf19a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 19 May 2022 20:08:29 +0200 Subject: [PATCH] lib/upnp/Compat: suppress -Wunused-but-set-parameter --- src/lib/upnp/Compat.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/upnp/Compat.hxx b/src/lib/upnp/Compat.hxx index 19eaee992..b9ef900a1 100644 --- a/src/lib/upnp/Compat.hxx +++ b/src/lib/upnp/Compat.hxx @@ -24,6 +24,10 @@ /* libupnp versions until 1.10.1 redefine "bool" and "true" */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wkeyword-macro" + +/* libupnp 1.8.4 uses a flawed kludge to suppress this warning in + inline function __list_add_valid() */ +#pragma GCC diagnostic ignored "-Wunused-but-set-parameter" #endif #include