chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
19844d4
)
Placate picky compiler.
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 2 Aug 2009 15:08:39 +0000
(16:08 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 2 Aug 2009 15:08:39 +0000
(16:08 +0100)
Patch from Ross Younger.
server/speaker.c
patch
|
blob
|
blame
|
history
diff --git
a/server/speaker.c
b/server/speaker.c
index b96fd5dd20fbe78b10e13edcf514e4dd224e4363..2206547674134ee3afd5c1b7c026919a98d329c6 100644
(file)
--- a/
server/speaker.c
+++ b/
server/speaker.c
@@
-426,8
+426,10
@@
static size_t speaker_callback(void *buffer,
if(playing->start == sizeof playing->buffer)
playing->start = 0;
/* See if we've reached the end of the track */
if(playing->start == sizeof playing->buffer)
playing->start = 0;
/* See if we've reached the end of the track */
- if(playing->used == 0 && playing->eof)
- write(sigpipe[1], "", 1);
+ if(playing->used == 0 && playing->eof) {
+ int ignored = write(sigpipe[1], "", 1);
+ (void) ignored;
+ }
provided_samples = bytes / uaudio_sample_size;
playing->played += provided_samples;
}
provided_samples = bytes / uaudio_sample_size;
playing->played += provided_samples;
}
@@
-634,8
+636,9
@@
static void mainloop(void) {
* interrupted poll(). */
if(fds[sigpipe_slot].revents & POLLIN) {
char buffer[64];
* interrupted poll(). */
if(fds[sigpipe_slot].revents & POLLIN) {
char buffer[64];
+ int ignored; (void)ignored;
- read(sigpipe[0], buffer, sizeof buffer);
+
ignored =
read(sigpipe[0], buffer, sizeof buffer);
}
/* Send SM_FINISHED when we're near the end of the track.
*
}
/* Send SM_FINISHED when we're near the end of the track.
*