[glib: 4/7] tests: Fix unused variable in the threadpool-test
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/7] tests: Fix unused variable in the threadpool-test
- Date: Wed, 30 Oct 2019 16:24:03 +0000 (UTC)
commit 543a0c40914609f0253fb36ae0c67314fdaa9df5
Author: Philip Withnall <withnall endlessm com>
Date: Wed Oct 30 15:24:08 2019 +0000
tests: Fix unused variable in the threadpool-test
It looks like `continue_timeout` should be returned here, rather than
being set and never read. Spotted by `scan-build`.
Signed-off-by: Philip Withnall <withnall endlessm com>
tests/threadpool-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/threadpool-test.c b/tests/threadpool-test.c
index 1c8aa06d8..b2cb4d99e 100644
--- a/tests/threadpool-test.c
+++ b/tests/threadpool-test.c
@@ -414,7 +414,7 @@ test_check_start_and_stop (gpointer user_data)
}
run_next = FALSE;
- return TRUE;
+ return continue_timeout;
}
if (test_number == 3) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]