listen: fix unused parameter warnings when TCP is disabled
Work around gcc warnings by casting the parameters to void.
This commit is contained in:
parent
d0a17ffb9d
commit
1630fe00a2
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user