ref: 028669fd1e9f80e2010c9a4535f917700bd78f2e
parent: a0954978a531051e7fe8bb07cf29b188ae49b2af
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Wed Oct 22 13:39:31 EDT 2008
examples/audio_out.c : Fix gcc-4.3 compiler warning.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-22 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
+
+ * examples/audio_out.c
+ Fix gcc-4.3 compiler warning.
+
2008-10-17 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* doc/faq.html
--- a/examples/audio_out.c
+++ b/examples/audio_out.c
@@ -119,7 +119,7 @@
{ LINUX_AUDIO_OUT *linux_out ;
static float float_buffer [BUFFER_LEN] ;
static short buffer [BUFFER_LEN] ;
- int k, readcount ;
+ int k, readcount, ignored ;
if ((linux_out = (LINUX_AUDIO_OUT*) audio_out) == NULL)
{ printf ("linux_play : AUDIO_OUT is NULL.\n") ;
@@ -134,7 +134,7 @@
while ((readcount = callback (callback_data, float_buffer, BUFFER_LEN / linux_out->channels)))
{ for (k = 0 ; k < readcount * linux_out->channels ; k++)
buffer [k] = lrint (32767.0 * float_buffer [k]) ;
- write (linux_out->fd, buffer, readcount * linux_out->channels * sizeof (short)) ;
+ ignored = write (linux_out->fd, buffer, readcount * linux_out->channels * sizeof (short)) ;
} ;
return ;