We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cf9fc4 commit 539e775Copy full SHA for 539e775
src/server.cpp
@@ -143,9 +143,10 @@ static void onTerminate(int status) {
143
static void onIllegal(int status) {
144
const char msg[] = "SIGILL received: illegal instruction, unsupported CPU or device. Terminating.\n";
145
#ifdef __linux__
146
- write(STDERR_FILENO, msg, sizeof(msg) - 1);
+ ssize_t ret __attribute__((unused)) = write(STDERR_FILENO, msg, sizeof(msg) - 1);
147
#elif _WIN32
148
- _write(_fileno(stderr), msg, sizeof(msg) - 1);
+ int ret = _write(_fileno(stderr), msg, sizeof(msg) - 1);
149
+ (void)ret;
150
#endif
151
// Exit code 128+N is the standard shell convention for signal-terminated
152
// processes (bash, dash, Docker, Kubernetes all follow this).
0 commit comments