diff options
author | Max Kellermann <max@duempel.org> | 2009-02-24 19:06:31 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-24 19:06:31 +0100 |
commit | 1630fe00a254c1cdf0707aadcc02f31b4287a629 (patch) | |
tree | 3b10ec844f9ce97b10c0cb0af47f7000a5006684 | |
parent | d0a17ffb9d858753f4cb3ce2e9c9ea44c6484f7c (diff) | |
download | mpd-1630fe00a254c1cdf0707aadcc02f31b4287a629.tar.gz mpd-1630fe00a254c1cdf0707aadcc02f31b4287a629.tar.xz mpd-1630fe00a254c1cdf0707aadcc02f31b4287a629.zip |
listen: fix unused parameter warnings when TCP is disabled
Work around gcc warnings by casting the parameters to void.
Diffstat (limited to '')
-rw-r--r-- | src/listen.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |