diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-09-04 12:47:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-04 12:47:21 +0100 |
commit | 6b085b9d7367e077ca69f4f82ba0f92cc6b6e443 (patch) | |
tree | 24a71b96fa92cd775faba432e659cd5a23d8ed0d /src/os_unix.c | |
parent | c8ac3a072f18d4b250e55e91f610fe517e218777 (diff) |
patch 9.0.0376: clang warns for dead assignmentsv9.0.0376
Problem: Clang warns for dead assignments.
Solution: Adjust the code. (Yegappan Lakshmanan, closes #11048)
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 4dadac30af..1ac6e190bc 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -4522,7 +4522,7 @@ mch_call_shell_terminal( // restore curwin/curbuf and a few other things aucmd_restbuf(&aco); - // only require pressing Enter when redrawing, to avoid that system() gets + // Only require pressing Enter when redrawing, to avoid that system() gets // the hit-enter prompt even though it didn't output anything. if (!RedrawingDisabled) wait_return(TRUE); @@ -5021,7 +5021,6 @@ mch_call_shell_fork( { // finished all the lines, close pipe close(toshell_fd); - toshell_fd = -1; break; } lp = ml_get(lnum); @@ -5399,7 +5398,7 @@ finished: * child already exited. */ if (wait_pid != pid) - wait_pid = wait4pid(pid, &status); + (void)wait4pid(pid, &status); # ifdef FEAT_GUI // Close slave side of pty. Only do this after the child has @@ -6495,7 +6494,7 @@ select_eintr: #ifdef FEAT_JOB_CHANNEL // also call when ret == 0, we may be polling a keep-open channel if (ret >= 0) - ret = channel_select_check(ret, &rfds, &wfds); + (void)channel_select_check(ret, &rfds, &wfds); #endif #endif // HAVE_SELECT |