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.9.0~46 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4b665350f555d17d5ad84b8f63bf9acbdf0b634d;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 a505ccd..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) - (void) 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 723e4a4..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) - (void) 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 1ec7be4..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) - (void) 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 bdd5b09..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) - (void) 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 deabdbf..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) - (void) 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 f643671..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) - (void) write(1, ".", 1); + if (verbose_mode) { + fwrite(".", sizeof(char), 1, stdout); + fflush(stdout); + } } test_stop_enqueue = 1;