miniupnpc: Fix compile warning: unused parameter

miniupnpc.c: In function ‘upnpDiscoverDevices’:
miniupnpc.c:270:34: warning: unused parameter ‘minissdpdsock’ [-Wunused-parameter]
                     const char * minissdpdsock, int localport,
                     ~~~~~~~~~~~~~^~~~~~~~~~~~~
This commit is contained in:
Pali Rohár 2021-01-27 13:10:03 +01:00
parent 36cc66edda
commit e768e1555e
1 changed files with 2 additions and 0 deletions

View File

@ -320,6 +320,8 @@ upnpDiscoverDevices(const char * const deviceTypes[],
return devlist; return devlist;
} }
} }
#else /* !defined(_WIN32) && !defined(__amigaos__) && !defined(__amigaos4__) */
(void)minissdpdsock; /* unused */
#endif /* !defined(_WIN32) && !defined(__amigaos__) && !defined(__amigaos4__) */ #endif /* !defined(_WIN32) && !defined(__amigaos__) && !defined(__amigaos4__) */
/* direct discovery if minissdpd responses are not sufficient */ /* direct discovery if minissdpd responses are not sufficient */