diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-04-27 18:10:45 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-04-27 18:10:45 -0700 |
commit | 50f1172349dc900da4016c243734ae50691eab6c (patch) | |
tree | ceddcceda65965cedf41de62dc0734a39a5fcae6 | |
parent | 2f15ccc30479d98012e3ddd595fa13c2f58d4a87 (diff) |
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 <jeremyhu@apple.com>
-rw-r--r-- | launchd/console_redirect.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |