From 1923e7b67d2e8beb99e1be54a20db3a9e554e056 Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 28 Feb 2015 08:00:10 +0100 Subject: [PATCH] =?UTF-8?q?silence=20compiler=20warning=20in=20player.c=20?= =?UTF-8?q?"warning:=20ignoring=20return=20value=20of=20=E2=80=98read?= =?UTF-8?q?=E2=80=99=20..."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/player.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index f4e5ed36..2eae34d2 100644 --- a/src/player.c +++ b/src/player.c @@ -1804,7 +1804,9 @@ player_playback_cb(int fd, short what, void *arg) uint64_t ticks; /* Acknowledge timer */ - read(fd, &ticks, sizeof(ticks)); + ret = read(fd, &ticks, sizeof(ticks)); + if (ret <= 0) + DPRINTF(E_LOG, L_PLAYER, "Error reading timer.\n"); #endif /* __linux__ */ /* Decide how many packets to send */