From 087d02daa2d3305323092ac62184a63081e5964c Mon Sep 17 00:00:00 2001 From: "fergus.henderson" Date: Wed, 4 Apr 2012 19:01:34 +0000 Subject: Fix for distcc issue 96 : build problem with -Werror due to ignoring return value from read(). --- src/stats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stats.c b/src/stats.c index 21aeb65..c1661f7 100644 --- a/src/stats.c +++ b/src/stats.c @@ -440,6 +440,7 @@ dcc_free_space %d MB\n\ free_space_mb); dcc_set_nonblocking(acc_fd); ret = read(acc_fd, challenge, 1024); /* empty the receive queue */ + if (ret < 0) rs_log_info("read on acc_fd failed"); dcc_writex(acc_fd, reply, reply_len); } -- cgit v1.2.1