From 89876b1a8de958c434cd591b5be4122c80a41e61 Mon Sep 17 00:00:00 2001 From: Phaedrus Leeds Date: Tue, 26 Oct 2021 18:43:06 -0700 Subject: test-update-portal: Fix warn_unused_result warning --- tests/test-update-portal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test-update-portal.c b/tests/test-update-portal.c index 8c8f4466..f283f182 100644 --- a/tests/test-update-portal.c +++ b/tests/test-update-portal.c @@ -77,7 +77,9 @@ static void write_status (int res, int status_pipe) { char c = res; - write (status_pipe, &c, 1); + const ssize_t write_ret = write (status_pipe, &c, 1); + if (write_ret < 0) + g_printerr ("write_status() failed with %zd\n", write_ret); } typedef int (*TestCallback) (PortalFlatpak *portal, int status_pipe); -- cgit v1.2.1