Mercurial > vim
comparison src/os_unix.c @ 29081:b66386af68f8 v8.2.5062
patch 8.2.5062: Coverity warns for dead code
Commit: https://github.com/vim/vim/commit/1f89abf69d2c485c38da9a45161e806de0f86f2f
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 6 10:07:01 2022 +0100
patch 8.2.5062: Coverity warns for dead code
Problem: Coverity warns for dead code.
Solution: Remove the dead code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 06 Jun 2022 11:15:05 +0200 |
parents | 9781c150eddd |
children | e921ecb232f9 |
comparison
equal
deleted
inserted
replaced
29080:74c06c39985a | 29081:b66386af68f8 |
---|---|
8420 timeout_flag = FALSE; | 8420 timeout_flag = FALSE; |
8421 ret = ret == 0 ? sigpending(&sigs) : ret; | 8421 ret = ret == 0 ? sigpending(&sigs) : ret; |
8422 if (ret == 0) | 8422 if (ret == 0) |
8423 { | 8423 { |
8424 alarm_pending = sigismember(&sigs, SIGALRM); | 8424 alarm_pending = sigismember(&sigs, SIGALRM); |
8425 ret = ret == 0 ? sigprocmask(SIG_SETMASK, &saved_sigs, NULL) : ret; | 8425 ret = sigprocmask(SIG_SETMASK, &saved_sigs, NULL); |
8426 } | 8426 } |
8427 if (unlikely(ret != 0 || alarm_pending < 0)) | 8427 if (unlikely(ret != 0 || alarm_pending < 0)) |
8428 { | 8428 { |
8429 // Just catching coding errors. Write an error message, but carry on. | 8429 // Just catching coding errors. Write an error message, but carry on. |
8430 semsg(_(e_could_not_check_for_pending_sigalrm_str), strerror(errno)); | 8430 semsg(_(e_could_not_check_for_pending_sigalrm_str), strerror(errno)); |