From 66e69d7f2b8568c304bdc280d15f543e49d1721c Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Wed, 30 Jun 2021 15:28:44 +0200
Subject: [PATCH] Ignore return value of write() in signal handler

---
 src/main.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.cpp b/src/main.cpp
index f4484f949..29e93d493 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -76,8 +76,8 @@ stacktraceHandler(int signum)
 #endif
         );
         if (file != -1) {
-                constexpr char header[] = "Error: signal\n";
-                write(file, header, std::size(header) - 1);
+                constexpr char header[]   = "Error: signal\n";
+                [[maybe_unused]] auto ret = write(file, header, std::size(header) - 1);
                 backtrace_symbols_fd(array, size, file);
                 close(file);
         }
-- 
GitLab