Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
e888af98
Commit
e888af98
authored
Dec 30, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bonjour: fixed "unused parameter" warnings
Add G_GNUC_UNUSED attributes.
parent
13867a1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
zeroconf-bonjour.c
src/zeroconf-bonjour.c
+13
-7
No files found.
src/zeroconf-bonjour.c
View file @
e888af98
...
...
@@ -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."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment