From 2e27c885a90ff97865410da525cf6c498c93edc5 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Sun, 24 Aug 2014 16:08:32 +0100 Subject: [PATCH] Add int to stop compiler warning --- audio_pipe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio_pipe.c b/audio_pipe.c index 6af53a49..d85f1083 100644 --- a/audio_pipe.c +++ b/audio_pipe.c @@ -28,6 +28,7 @@ #include #include #include +#include #include "common.h" #include "audio.h" @@ -44,7 +45,7 @@ static void start(int sample_rate) { } static void play(short buf[], int samples) { - write(fd, buf, samples*4); + int ignore = write(fd, buf, samples*4); } static void stop(void) {