Skip to content

Commit 7bd3c95

Browse files
committed
Fix compiler warning
1 parent 880eb96 commit 7bd3c95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mainReadout.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,8 @@ void Readout::executeCustomCommand(const char *stateChange) {
14741474
if (it != customCommands.end()) {
14751475
theLog.log(LogInfoDevel_(3013), "Executing custom command for %s : %s", it->first.c_str(), it->second.c_str());
14761476
std::string cmd = it->second + "\n";
1477-
write(customCommandsShellFdIn, cmd.c_str(), cmd.length());
1477+
auto retval = write(customCommandsShellFdIn, cmd.c_str(), cmd.length());
1478+
(void)retval;
14781479
fsync(customCommandsShellFdIn);
14791480
LineBuffer b;
14801481
const int cmdTimeout = 10000; // 10s timeout

0 commit comments

Comments
 (0)