Cleanup: remove unused return value warning from tests
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 29 Jul 2015 19:11:17 +0000 (15:11 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 29 Jul 2015 19:11:17 +0000 (15:11 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/benchmark/test_urcu_lfq.c
tests/benchmark/test_urcu_lfs.c
tests/benchmark/test_urcu_lfs_rcu.c
tests/benchmark/test_urcu_wfcq.c
tests/benchmark/test_urcu_wfq.c
tests/benchmark/test_urcu_wfs.c

index a505ccde27cd28d5402154d8d17856ea6888c974..62637f6e635e8b4fe4572a84524928783888fb09 100644 (file)
@@ -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;
index 723e4a44c8e004b9629ea8c4d769e8ec244b60e7..21015328828009fb450df465578f61af546fe013 100644 (file)
@@ -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;
index 1ec7be43e3e30d069e064c4d8e14b1624d0b35a2..5a44c97be42c08106ce2af4559dc2b206e7ac5c3 100644 (file)
@@ -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;
index bdd5b0928fb9081ae9c312fcdde84b509dd9107d..ece2de88cb83ba96ff33fedabe393bc0f539a4c9 100644 (file)
@@ -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;
index deabdbf12307aca0ee339d2cfcf1c77264696fbe..979f765dc1e357c00f1f20534844f2014af2312a 100644 (file)
@@ -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;
index f64367112020f551ed3ce3d87261537283c78e07..e6dfe518b839a884d92729e591a9ec31f83d81b6 100644 (file)
@@ -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;
This page took 0.029721 seconds and 4 git commands to generate.