From e888af98a2c924a6f668cbda735e6a58593434cb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Dec 2008 16:45:49 +0100 Subject: bonjour: fixed "unused parameter" warnings Add G_GNUC_UNUSED attributes. --- src/zeroconf-bonjour.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/zeroconf-bonjour.c') diff --git a/src/zeroconf-bonjour.c b/src/zeroconf-bonjour.c index 03be18de9..27260ee99 100644 --- a/src/zeroconf-bonjour.c +++ b/src/zeroconf-bonjour.c @@ -31,7 +31,9 @@ static struct ioOps zeroConfIo; static DNSServiceRef dnsReference; -static int dnsRegisterFdset(fd_set * rfds, fd_set * wfds, fd_set * efds) +static int +dnsRegisterFdset(fd_set *rfds, G_GNUC_UNUSED fd_set *wfds, + G_GNUC_UNUSED fd_set *efds) { int fd; @@ -47,8 +49,9 @@ static int dnsRegisterFdset(fd_set * rfds, fd_set * wfds, fd_set * efds) return fd; } -static int dnsRegisterFdconsume(int fdCount, fd_set * rfds, fd_set * wfds, - fd_set * efds) +static int +dnsRegisterFdconsume(int fdCount, fd_set *rfds, + G_GNUC_UNUSED fd_set *wfds, G_GNUC_UNUSED fd_set *efds) { int fd; @@ -70,10 +73,13 @@ static int dnsRegisterFdconsume(int fdCount, fd_set * rfds, fd_set * wfds, return fdCount; } -static void dnsRegisterCallback(DNSServiceRef sdRef, DNSServiceFlags flags, - DNSServiceErrorType errorCode, const char *name, - const char *regtype, const char *domain, - void *context) +static void +dnsRegisterCallback(G_GNUC_UNUSED DNSServiceRef sdRef, + G_GNUC_UNUSED DNSServiceFlags flags, + DNSServiceErrorType errorCode, const char *name, + G_GNUC_UNUSED const char *regtype, + G_GNUC_UNUSED const char *domain, + G_GNUC_UNUSED void *context) { if (errorCode != kDNSServiceErr_NoError) { g_warning("Failed to register zeroconf service."); -- cgit v1.2.3