diff options
author | Max Kellermann <max@duempel.org> | 2008-12-30 16:45:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-30 16:45:49 +0100 |
commit | e888af98a2c924a6f668cbda735e6a58593434cb (patch) | |
tree | 33b5523d32a4144bd608322c0bf6d0dc608a06de /src/zeroconf-bonjour.c | |
parent | 13867a1e7c0769f5a5221c641ad96fd09e025207 (diff) | |
download | mpd-e888af98a2c924a6f668cbda735e6a58593434cb.tar.gz mpd-e888af98a2c924a6f668cbda735e6a58593434cb.tar.xz mpd-e888af98a2c924a6f668cbda735e6a58593434cb.zip |
bonjour: fixed "unused parameter" warnings
Add G_GNUC_UNUSED attributes.
Diffstat (limited to 'src/zeroconf-bonjour.c')
-rw-r--r-- | src/zeroconf-bonjour.c | 20 |
1 files changed, 13 insertions, 7 deletions
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."); |