lib/upnp/Compat: suppress -Wunused-but-set-parameter

This commit is contained in:
Max Kellermann 2022-05-19 20:08:29 +02:00
parent a009e95afd
commit 8bd1b5228c
1 changed files with 4 additions and 0 deletions

View File

@ -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 <upnp.h>