From 50f1172349dc900da4016c243734ae50691eab6c Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 27 Apr 2011 18:10:45 -0700 Subject: launchd: Silence clang static analyzer ../console_redirect.c:67:5: warning: Value stored to 'n' is never read n = kevent(kq, ev, 2, NULL, 0, NULL); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. Signed-off-by: Jeremy Huddleston --- launchd/console_redirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'launchd') diff --git a/launchd/console_redirect.c b/launchd/console_redirect.c index d932dc3..8bf2ab0 100644 --- a/launchd/console_redirect.c +++ b/launchd/console_redirect.c @@ -64,7 +64,7 @@ static void *redirect_thread(void *ctx) { kq = kqueue(); EV_SET(&ev[0], fds[0].fd, EVFILT_READ, EV_ADD, 0, 0, 0); EV_SET(&ev[1], fds[1].fd, EVFILT_READ, EV_ADD, 0, 0, 0); - n = kevent(kq, ev, 2, NULL, 0, NULL); + kevent(kq, ev, 2, NULL, 0, NULL); /* Set our buffers to empty */ fds[0].w = fds[0].buf; -- cgit v1.2.3