shithub: libsamplerate

Download patch

ref: e93f061363cde02030d20e6cb9555c587161d2ed
parent: 01c5b69162ecf09e3b1dec114da18257983ce7aa
author: David Seifert <soap@gentoo.org>
date: Sat Jun 10 11:48:00 EDT 2017

Fix -Werror failures on GCC 7

--- a/examples/audio_out.c
+++ b/examples/audio_out.c
@@ -392,7 +392,7 @@
 	while ((read_frames = callback (callback_data, float_buffer, BUFFER_LEN / opensoundsys_out->channels)))
 	{	for (k = 0 ; k < read_frames * opensoundsys_out->channels ; k++)
 			buffer [k] = lrint (32767.0 * float_buffer [k]) ;
-		(void) write (opensoundsys_out->fd, buffer, read_frames * opensoundsys_out->channels * sizeof (short)) ;
+		if (write (opensoundsys_out->fd, buffer, read_frames * opensoundsys_out->channels * sizeof (short))) {}
 		} ;
 
 	return ;
--- a/tests/src-evaluate.c
+++ b/tests/src-evaluate.c
@@ -183,7 +183,7 @@
 
 static const char*
 get_machine_details (void)
-{	static char namestr [256] ;
+{	static char namestr [262] ;
 
 	struct utsname name ;