From e768e1555e8289060b4abb073b7e2cf6c6bcc973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Wed, 27 Jan 2021 13:10:03 +0100 Subject: [PATCH] miniupnpc: Fix compile warning: unused parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit miniupnpc.c: In function ‘upnpDiscoverDevices’: miniupnpc.c:270:34: warning: unused parameter ‘minissdpdsock’ [-Wunused-parameter] const char * minissdpdsock, int localport, ~~~~~~~~~~~~~^~~~~~~~~~~~~ --- miniupnpc/miniupnpc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miniupnpc/miniupnpc.c b/miniupnpc/miniupnpc.c index 1c764c7..bd6d960 100644 --- a/miniupnpc/miniupnpc.c +++ b/miniupnpc/miniupnpc.c @@ -320,6 +320,8 @@ upnpDiscoverDevices(const char * const deviceTypes[], return devlist; } } +#else /* !defined(_WIN32) && !defined(__amigaos__) && !defined(__amigaos4__) */ + (void)minissdpdsock; /* unused */ #endif /* !defined(_WIN32) && !defined(__amigaos__) && !defined(__amigaos4__) */ /* direct discovery if minissdpd responses are not sufficient */