From 1630fe00a254c1cdf0707aadcc02f31b4287a629 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Feb 2009 19:06:31 +0100 Subject: listen: fix unused parameter warnings when TCP is disabled Work around gcc warnings by casting the parameters to void. --- src/listen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/listen.c b/src/listen.c index e8306cd1e..b5a7b369a 100644 --- a/src/listen.c +++ b/src/listen.c @@ -313,6 +313,9 @@ listen_add_host(const char *hostname, unsigned port, GError **error) #endif /* !WIN32 */ #else /* HAVE_TCP */ + (void)hostname; + (void)port; + g_set_error(error, listen_quark(), 0, "TCP support is disabled"); return false; -- cgit v1.2.3