summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/process.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libcamera/process.cpp b/src/libcamera/process.cpp
index ab716a9c..3b4d0f10 100644
--- a/src/libcamera/process.cpp
+++ b/src/libcamera/process.cpp
@@ -68,10 +68,15 @@ namespace {
void sigact(int signal, siginfo_t *info, void *ucontext)
{
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-result"
+ /*
+ * We're in a signal handler so we can't log any message, and we need
+ * to continue anyway.
+ */
char data = 0;
- /* We're in a signal handler so we can't log any message,
- * and we need to continue anyway. */
- (void)write(ProcessManager::instance()->writePipe(), &data, sizeof(data));
+ write(ProcessManager::instance()->writePipe(), &data, sizeof(data));
+#pragma GCC diagnostic pop
const struct sigaction &oldsa = ProcessManager::instance()->oldsa();
if (oldsa.sa_flags & SA_SIGINFO) {