aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-30 16:45:49 +0100
committerMax Kellermann <max@duempel.org>2008-12-30 16:45:49 +0100
commite888af98a2c924a6f668cbda735e6a58593434cb (patch)
tree33b5523d32a4144bd608322c0bf6d0dc608a06de /src
parent13867a1e7c0769f5a5221c641ad96fd09e025207 (diff)
downloadmpd-e888af98a2c924a6f668cbda735e6a58593434cb.tar.gz
mpd-e888af98a2c924a6f668cbda735e6a58593434cb.tar.xz
mpd-e888af98a2c924a6f668cbda735e6a58593434cb.zip
bonjour: fixed "unused parameter" warnings
Add G_GNUC_UNUSED attributes.
Diffstat (limited to '')
-rw-r--r--src/zeroconf-bonjour.c20
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.");