diff options
author | Robert Löhning <robert.loehning@qt.io> | 2021-06-04 13:58:29 +0200 |
---|---|---|
committer | Robert Löhning <robert.loehning@qt.io> | 2021-08-10 18:50:12 +0000 |
commit | 0a953d2412449170ae6a623e8f4a15bd741f0852 (patch) | |
tree | d29906630b8a3a3aa6d30a1bcc7548d66397e970 | |
parent | 867b00651707d5fafc97614ef93916c984c97045 (diff) |
Process_stub: Silence warning about unused return value
Change-Id: I7bc39728c0b7d34b48bb2bdef4295dc17a1e8bc6
Reviewed-by: hjk <hjk@qt.io>
-rw-r--r-- | src/libs/utils/process_stub_unix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/utils/process_stub_unix.c b/src/libs/utils/process_stub_unix.c index d7a7ff15b0..856efa26af 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); } |