diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-05-19 13:08:40 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-05-19 13:44:23 +0200 |
commit | c7dee320c004bf9508e54555d0ad9f727b449705 (patch) | |
tree | 1ef4cbb8ef6021c22f9e995b799b46c80a96ad1a /src | |
parent | 71d8bb2ec854e43c56d77c87f80c40807e8f8457 (diff) |
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)) {
^
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/test-qcdm-serial-port.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |