From: Mathieu Desnoyers Date: Wed, 29 Jul 2015 19:11:17 +0000 (-0400) Subject: Cleanup: remove unused return value warning from tests X-Git-Tag: v0.8.10~15 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b16468600562de2e3445195dc4ef97c766867be4;p=urcu.git Cleanup: remove unused return value warning from tests Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/benchmark/test_urcu_lfq.c b/tests/benchmark/test_urcu_lfq.c index 33d1e73..62637f6 100644 --- a/tests/benchmark/test_urcu_lfq.c +++ b/tests/benchmark/test_urcu_lfq.c @@ -381,8 +381,10 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); - if (verbose_mode) - write (1, ".", 1); + if (verbose_mode) { + fwrite(".", sizeof(char), 1, stdout); + fflush(stdout); + } } test_stop = 1; diff --git a/tests/benchmark/test_urcu_lfs.c b/tests/benchmark/test_urcu_lfs.c index 33ba069..2101532 100644 --- a/tests/benchmark/test_urcu_lfs.c +++ b/tests/benchmark/test_urcu_lfs.c @@ -465,8 +465,10 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); - if (verbose_mode) - write (1, ".", 1); + if (verbose_mode) { + fwrite(".", sizeof(char), 1, stdout); + fflush(stdout); + } } test_stop = 1; diff --git a/tests/benchmark/test_urcu_lfs_rcu.c b/tests/benchmark/test_urcu_lfs_rcu.c index dc07485..5a44c97 100644 --- a/tests/benchmark/test_urcu_lfs_rcu.c +++ b/tests/benchmark/test_urcu_lfs_rcu.c @@ -382,8 +382,10 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); - if (verbose_mode) - write (1, ".", 1); + if (verbose_mode) { + fwrite(".", sizeof(char), 1, stdout); + fflush(stdout); + } } test_stop = 1; diff --git a/tests/benchmark/test_urcu_wfcq.c b/tests/benchmark/test_urcu_wfcq.c index d0814cd..ece2de8 100644 --- a/tests/benchmark/test_urcu_wfcq.c +++ b/tests/benchmark/test_urcu_wfcq.c @@ -491,8 +491,10 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); - if (verbose_mode) - write (1, ".", 1); + if (verbose_mode) { + fwrite(".", sizeof(char), 1, stdout); + fflush(stdout); + } } test_stop_enqueue = 1; diff --git a/tests/benchmark/test_urcu_wfq.c b/tests/benchmark/test_urcu_wfq.c index 07ab72b..979f765 100644 --- a/tests/benchmark/test_urcu_wfq.c +++ b/tests/benchmark/test_urcu_wfq.c @@ -349,8 +349,10 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); - if (verbose_mode) - write (1, ".", 1); + if (verbose_mode) { + fwrite(".", sizeof(char), 1, stdout); + fflush(stdout); + } } test_stop = 1; diff --git a/tests/benchmark/test_urcu_wfs.c b/tests/benchmark/test_urcu_wfs.c index c74f8b7..e6dfe51 100644 --- a/tests/benchmark/test_urcu_wfs.c +++ b/tests/benchmark/test_urcu_wfs.c @@ -479,8 +479,10 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); - if (verbose_mode) - write (1, ".", 1); + if (verbose_mode) { + fwrite(".", sizeof(char), 1, stdout); + fflush(stdout); + } } test_stop_enqueue = 1;