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
fb00e7fd
Commit
fb00e7fd
authored
Dec 21, 2010
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add void casts to suppress "result unused" warnings (clang)
parent
41fdcf32
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
NEWS
NEWS
+1
-0
output_thread.c
src/output_thread.c
+1
-1
poison.h
src/poison.h
+2
-2
No files found.
NEWS
View file @
fb00e7fd
ver 0.16.1 (2010/??/??)
ver 0.16.1 (2010/??/??)
* audio_check: fix parameter in prototype
* audio_check: fix parameter in prototype
* add void casts to suppress "result unused" warnings (clang)
* decoder:
* decoder:
- mad: work around build failure on Solaris
- mad: work around build failure on Solaris
* output:
* output:
...
...
src/output_thread.c
View file @
fb00e7fd
...
@@ -303,7 +303,7 @@ ao_wait(struct audio_output *ao)
...
@@ -303,7 +303,7 @@ ao_wait(struct audio_output *ao)
GTimeVal
tv
;
GTimeVal
tv
;
g_get_current_time
(
&
tv
);
g_get_current_time
(
&
tv
);
g_time_val_add
(
&
tv
,
delay
*
1000
);
g_time_val_add
(
&
tv
,
delay
*
1000
);
g_cond_timed_wait
(
ao
->
cond
,
ao
->
mutex
,
&
tv
);
(
void
)
g_cond_timed_wait
(
ao
->
cond
,
ao
->
mutex
,
&
tv
);
if
(
ao
->
command
!=
AO_COMMAND_NONE
)
if
(
ao
->
command
!=
AO_COMMAND_NONE
)
return
false
;
return
false
;
...
...
src/poison.h
View file @
fb00e7fd
...
@@ -47,7 +47,7 @@ poison_noaccess(void *p, size_t length)
...
@@ -47,7 +47,7 @@ poison_noaccess(void *p, size_t length)
memset
(
p
,
0x01
,
length
);
memset
(
p
,
0x01
,
length
);
#ifdef HAVE_VALGRIND_MEMCHECK_H
#ifdef HAVE_VALGRIND_MEMCHECK_H
VALGRIND_MAKE_MEM_NOACCESS
(
p
,
length
);
(
void
)
VALGRIND_MAKE_MEM_NOACCESS
(
p
,
length
);
#endif
#endif
#endif
#endif
}
}
...
@@ -68,7 +68,7 @@ poison_undefined(void *p, size_t length)
...
@@ -68,7 +68,7 @@ poison_undefined(void *p, size_t length)
memset
(
p
,
0x02
,
length
);
memset
(
p
,
0x02
,
length
);
#ifdef HAVE_VALGRIND_MEMCHECK_H
#ifdef HAVE_VALGRIND_MEMCHECK_H
VALGRIND_MAKE_MEM_UNDEFINED
(
p
,
length
);
(
void
)
VALGRIND_MAKE_MEM_UNDEFINED
(
p
,
length
);
#endif
#endif
#endif
#endif
}
}
...
...
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