Skip to content

Commit e93f061

Browse files
SoapGentooerikd
authored andcommitted
Fix -Werror failures on GCC 7
1 parent 01c5b69 commit e93f061

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/audio_out.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ opensoundsys_play (get_audio_callback_t callback, AUDIO_OUT *audio_out, void *ca
392392
while ((read_frames = callback (callback_data, float_buffer, BUFFER_LEN / opensoundsys_out->channels)))
393393
{ for (k = 0 ; k < read_frames * opensoundsys_out->channels ; k++)
394394
buffer [k] = lrint (32767.0 * float_buffer [k]) ;
395-
(void) write (opensoundsys_out->fd, buffer, read_frames * opensoundsys_out->channels * sizeof (short)) ;
395+
if (write (opensoundsys_out->fd, buffer, read_frames * opensoundsys_out->channels * sizeof (short))) {}
396396
} ;
397397

398398
return ;

tests/src-evaluate.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ usage_exit (const char *progname, const RESAMPLE_PROG *prog, int count)
183183

184184
static const char*
185185
get_machine_details (void)
186-
{ static char namestr [256] ;
186+
{ static char namestr [262] ;
187187

188188
struct utsname name ;
189189

0 commit comments

Comments
 (0)