Commit 1630fe00 authored by Max Kellermann's avatar Max Kellermann

listen: fix unused parameter warnings when TCP is disabled

Work around gcc warnings by casting the parameters to void.
parent d0a17ffb
...@@ -313,6 +313,9 @@ listen_add_host(const char *hostname, unsigned port, GError **error) ...@@ -313,6 +313,9 @@ listen_add_host(const char *hostname, unsigned port, GError **error)
#endif /* !WIN32 */ #endif /* !WIN32 */
#else /* HAVE_TCP */ #else /* HAVE_TCP */
(void)hostname;
(void)port;
g_set_error(error, listen_quark(), 0, g_set_error(error, listen_quark(), 0,
"TCP support is disabled"); "TCP support is disabled");
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment