diff options
author | Max Kellermann <max@duempel.org> | 2008-12-30 16:45:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-02 17:51:21 +0100 |
commit | ffc0cdb742522ff223ee3a9b99c939a980a2e073 (patch) | |
tree | efd1637a3b7c5ee7ba6a9d1a2d78c0d7fc646a99 | |
parent | 4f1747ff4c3cdd2966be2acd6abc65ba5d37b222 (diff) | |
download | mpd-ffc0cdb742522ff223ee3a9b99c939a980a2e073.tar.gz mpd-ffc0cdb742522ff223ee3a9b99c939a980a2e073.tar.xz mpd-ffc0cdb742522ff223ee3a9b99c939a980a2e073.zip |
bonjour: fixed "unused parameter" warnings
Add G_GNUC_UNUSED attributes.
-rw-r--r-- | src/zeroconf.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c index 74351256c..7267f10db 100644 --- a/src/zeroconf.c +++ b/src/zeroconf.c @@ -491,7 +491,9 @@ fail: #endif /* HAVE_AVAHI */ #ifdef HAVE_BONJOUR -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; @@ -507,8 +509,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; @@ -530,10 +533,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) { ERROR("Failed to register zeroconf service.\n"); |