listen: fix unused parameter warnings when TCP is disabled

Work around gcc warnings by casting the parameters to void.
This commit is contained in:
Max Kellermann 2009-02-24 19:06:31 +01:00
parent d0a17ffb9d
commit 1630fe00a2

View File

@ -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;