From c7dee320c004bf9508e54555d0ad9f727b449705 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 19 May 2020 13:08:40 +0200 Subject: [PATCH] test-qcdm-serial-port: fix warnings with -Wsign-compare test-qcdm-serial-port.c: In function 'wait_for_child': test-qcdm-serial-port.c:57:52: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (d->child && (now.tv_sec - start.tv_sec > timeout)) { ^ --- src/tests/test-qcdm-serial-port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test-qcdm-serial-port.c b/src/tests/test-qcdm-serial-port.c index 0b14282c..2a9e1c47 100644 --- a/src/tests/test-qcdm-serial-port.c +++ b/src/tests/test-qcdm-serial-port.c @@ -54,7 +54,7 @@ wait_for_child (TestData *d, guint32 timeout) status = 0; ret = waitpid (d->child, &status, WNOHANG); g_get_current_time (&now); - if (d->child && (now.tv_sec - start.tv_sec > timeout)) { + if (d->child && (now.tv_sec - start.tv_sec > (glong)timeout)) { /* Kill it */ if (g_test_verbose ()) g_message ("Killing running child process %d", d->child);