bonjour: fixed "unused parameter" warnings
Add G_GNUC_UNUSED attributes.
This commit is contained in:
@@ -31,7 +31,9 @@ static struct ioOps zeroConfIo;
|
|||||||
|
|
||||||
static DNSServiceRef dnsReference;
|
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;
|
int fd;
|
||||||
|
|
||||||
@@ -47,8 +49,9 @@ static int dnsRegisterFdset(fd_set * rfds, fd_set * wfds, fd_set * efds)
|
|||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dnsRegisterFdconsume(int fdCount, fd_set * rfds, fd_set * wfds,
|
static int
|
||||||
fd_set * efds)
|
dnsRegisterFdconsume(int fdCount, fd_set *rfds,
|
||||||
|
G_GNUC_UNUSED fd_set *wfds, G_GNUC_UNUSED fd_set *efds)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
@@ -70,10 +73,13 @@ static int dnsRegisterFdconsume(int fdCount, fd_set * rfds, fd_set * wfds,
|
|||||||
return fdCount;
|
return fdCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dnsRegisterCallback(DNSServiceRef sdRef, DNSServiceFlags flags,
|
static void
|
||||||
DNSServiceErrorType errorCode, const char *name,
|
dnsRegisterCallback(G_GNUC_UNUSED DNSServiceRef sdRef,
|
||||||
const char *regtype, const char *domain,
|
G_GNUC_UNUSED DNSServiceFlags flags,
|
||||||
void *context)
|
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) {
|
if (errorCode != kDNSServiceErr_NoError) {
|
||||||
g_warning("Failed to register zeroconf service.");
|
g_warning("Failed to register zeroconf service.");
|
||||||
|
Reference in New Issue
Block a user