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, 27 Apr 2016 12:32:58 +0000 (08:32 -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 33d1e73e34662f92743115b387c3eb374130f107..62637f6e635e8b4fe4572a84524928783888fb09 100644 (file)
@@ -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;
index 33ba06981af263a7a90bc0ae7d3f6aca9c85ecb8..21015328828009fb450df465578f61af546fe013 100644 (file)
@@ -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;
index dc0748501b4b1ea6ab2bb5f442e37be4383d37c4..5a44c97be42c08106ce2af4559dc2b206e7ac5c3 100644 (file)
@@ -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;
index d0814cdae08534e1aa2d20bbb257154e5b64677f..ece2de88cb83ba96ff33fedabe393bc0f539a4c9 100644 (file)
@@ -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;
index 07ab72b4d5870a808137f5cbba39bc9bdd8857ad..979f765dc1e357c00f1f20534844f2014af2312a 100644 (file)
@@ -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;
index c74f8b72cf1ae177c5bfdbe343e7c3ad058428cb..e6dfe518b839a884d92729e591a9ec31f83d81b6 100644 (file)
@@ -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;
This page took 0.029287 seconds and 4 git commands to generate.