Skip to content

Commit 5d05c5c

Browse files
committed
fix(cli): handle ignored system call results
2 parents 44c0132 + b004183 commit 5d05c5c

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/commands/TestsCommand.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ namespace
8686

8787
#ifndef _WIN32
8888
static constexpr char clearLine[] = "\r\033[2K";
89-
(void)::write(STDOUT_FILENO, clearLine, sizeof(clearLine) - 1);
89+
const ssize_t written =
90+
::write(STDOUT_FILENO, clearLine, sizeof(clearLine) - 1);
91+
(void)written;
9092
#endif
9193
}
9294

src/commands/deploy/DeployRunner.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ namespace vix::commands::deploy::runner
166166
output::command(std::cout, logsCmd);
167167

168168
if (!options.dryRun)
169-
(void)std::system(logsCmd.c_str());
169+
{
170+
const int logsExitCode = std::system(logsCmd.c_str());
171+
(void)logsExitCode;
172+
}
170173
}
171174

172175
return 1;

0 commit comments

Comments
 (0)