Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions judge/runguard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
#include <sys/sysinfo.h>
#include <vector>
#include <string>
#include <utility>

#define PROGRAM "runguard"
#define VERSION DOMJUDGE_VERSION "/" REVISION
Expand Down Expand Up @@ -233,7 +234,7 @@ void verbose(const char *format, ...)
void verbose_from_signalhandler(const char* msg)
{
if (!be_quiet && be_verbose) {
write(STDERR_FILENO, msg, strlen(msg));
[[maybe_unused]] auto r = write(STDERR_FILENO, msg, strlen(msg));
}
}

Expand All @@ -242,7 +243,7 @@ void warning_from_signalhandler(const char* msg)
if (!be_quiet) {
// Do not include timing here, as it wouldn't be safe from a signalhandler.
// TODO: Consider rewriting using clock_gettime in the future.
write(STDERR_FILENO, msg, strlen(msg));
[[maybe_unused]] auto r = write(STDERR_FILENO, msg, strlen(msg));
}
}

Expand Down
Loading