From e083d7526209d0faf2ac0fabbc1a1e59b9974ce2 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 26 May 2009 16:45:57 +0200 Subject: [PATCH] ignore gcc warning about write() return code not checked. It is esplicitily this way since the "max number of clients reached" is a best-effort error --- redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis.c b/redis.c index 63ae4948..5ced9a29 100644 --- a/redis.c +++ b/redis.c @@ -1528,7 +1528,7 @@ static void acceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) { char *err = "-ERR max number of clients reached\r\n"; /* That's a best effort error message, don't check write errors */ - write(c->fd,err,strlen(err)); + (void)write(c->fd,err,strlen(err)); freeClient(c); return; } -- 2.45.2