From 0a953d2412449170ae6a623e8f4a15bd741f0852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Fri, 4 Jun 2021 13:58:29 +0200 Subject: [PATCH] Process_stub: Silence warning about unused return value Change-Id: I7bc39728c0b7d34b48bb2bdef4295dc17a1e8bc6 Reviewed-by: hjk --- src/libs/utils/process_stub_unix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/utils/process_stub_unix.c b/src/libs/utils/process_stub_unix.c index d7a7ff15b09..856efa26af9 100644 --- a/src/libs/utils/process_stub_unix.c +++ b/src/libs/utils/process_stub_unix.c @@ -66,7 +66,8 @@ static void __attribute__((noreturn)) doExit(int code) { tcsetpgrp(0, getpid()); puts(sleepMsg); - fgets(sleepMsg, 2, stdin); /* Minimal size to make it wait */ + const char *rv = fgets(sleepMsg, 2, stdin); /* Minimal size to make it wait */ + (void)rv; // Q_UNUSED exit(code); }