From: Mathieu Desnoyers Date: Tue, 13 May 2014 13:27:36 +0000 (-0400) Subject: Cleanup: tests: cast console write return value as void X-Git-Tag: v0.9.0~87 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d863e15371666dff14e7f3191de5ff91d9b24d7f;p=userspace-rcu.git Cleanup: tests: cast console write return value as void Fixes #791 Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/benchmark/test_urcu_lfq.c b/tests/benchmark/test_urcu_lfq.c index 33d1e73..a505ccd 100644 --- a/tests/benchmark/test_urcu_lfq.c +++ b/tests/benchmark/test_urcu_lfq.c @@ -382,7 +382,7 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); if (verbose_mode) - write (1, ".", 1); + (void) write(1, ".", 1); } test_stop = 1; diff --git a/tests/benchmark/test_urcu_lfs.c b/tests/benchmark/test_urcu_lfs.c index 33ba069..723e4a4 100644 --- a/tests/benchmark/test_urcu_lfs.c +++ b/tests/benchmark/test_urcu_lfs.c @@ -466,7 +466,7 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); if (verbose_mode) - write (1, ".", 1); + (void) write(1, ".", 1); } test_stop = 1; diff --git a/tests/benchmark/test_urcu_lfs_rcu.c b/tests/benchmark/test_urcu_lfs_rcu.c index dc07485..1ec7be4 100644 --- a/tests/benchmark/test_urcu_lfs_rcu.c +++ b/tests/benchmark/test_urcu_lfs_rcu.c @@ -383,7 +383,7 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); if (verbose_mode) - write (1, ".", 1); + (void) write(1, ".", 1); } test_stop = 1; diff --git a/tests/benchmark/test_urcu_wfcq.c b/tests/benchmark/test_urcu_wfcq.c index d0814cd..bdd5b09 100644 --- a/tests/benchmark/test_urcu_wfcq.c +++ b/tests/benchmark/test_urcu_wfcq.c @@ -492,7 +492,7 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); if (verbose_mode) - write (1, ".", 1); + (void) write(1, ".", 1); } test_stop_enqueue = 1; diff --git a/tests/benchmark/test_urcu_wfq.c b/tests/benchmark/test_urcu_wfq.c index 07ab72b..deabdbf 100644 --- a/tests/benchmark/test_urcu_wfq.c +++ b/tests/benchmark/test_urcu_wfq.c @@ -350,7 +350,7 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); if (verbose_mode) - write (1, ".", 1); + (void) write(1, ".", 1); } test_stop = 1; diff --git a/tests/benchmark/test_urcu_wfs.c b/tests/benchmark/test_urcu_wfs.c index c74f8b7..f643671 100644 --- a/tests/benchmark/test_urcu_wfs.c +++ b/tests/benchmark/test_urcu_wfs.c @@ -480,7 +480,7 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); if (verbose_mode) - write (1, ".", 1); + (void) write(1, ".", 1); } test_stop_enqueue = 1;