aboutsummaryrefslogtreecommitdiff
path: root/paludis/util
diff options
context:
space:
mode:
authorAvatar Marvin Schmidt <marv@exherbo.org> 2020-10-16 08:32:29 +0200
committerAvatar Marvin Schmidt <marv@exherbo.org> 2021-09-17 18:30:07 +0200
commitb326c93ba8fa82fee313e67b0dcc7596ca6ac5fa (patch)
treeeb18f6e4057b562325ac7577097b29b3d0df60b4 /paludis/util
parent0670b21255c4f7d7aa2ea6a07cc30cd875a71777 (diff)
downloadpaludis-b326c93ba8fa82fee313e67b0dcc7596ca6ac5fa.tar.gz
paludis-b326c93ba8fa82fee313e67b0dcc7596ca6ac5fa.tar.xz
process: Remove unreachable code
The prior call of `ProcessCommand::exec` will either call `send_error` or `_exit(1)` causing the following warning/error with clang: > paludis/util/process.cc:1187:9: warning: code will never be executed [-Wunreachable-code] > _exit(1); > ^~~~~
Diffstat (limited to 'paludis/util')
-rw-r--r--paludis/util/process.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/paludis/util/process.cc b/paludis/util/process.cc
index 7a7ac522a..afc95d5d2 100644
--- a/paludis/util/process.cc
+++ b/paludis/util/process.cc
@@ -1183,8 +1183,6 @@ Process::run()
}
_imp->command.exec(err_fd);
-
- _exit(1);
}
else
{