From 583e90cdbc8de97463c667018b64426320a5bd3f Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Tue, 15 Mar 2011 18:27:17 -0300 Subject: [PATCH] Silence compiler warning message. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: unused parameter ‘listen_port6’ (cherry picked from commit e16cb4b225450cf8bedc3f5d128cfcfa179d3534) --- upnp/src/genlib/miniserver/miniserver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upnp/src/genlib/miniserver/miniserver.c b/upnp/src/genlib/miniserver/miniserver.c index d7386f8..ab84cc2 100644 --- a/upnp/src/genlib/miniserver/miniserver.c +++ b/upnp/src/genlib/miniserver/miniserver.c @@ -745,6 +745,10 @@ static int get_miniserver_sockets( out->miniServerSock4 = listenfd4; #ifdef UPNP_ENABLE_IPV6 out->miniServerSock6 = listenfd6; +#else + /* Silence compiler warning message: + * warning: unused parameter ‘listen_port6’ */ + listen_port6 = 0; #endif return UPNP_E_SUCCESS; }