Cleanup: tests: cast console write return value as void
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 May 2014 13:27:36 +0000 (09:27 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 May 2014 13:27:36 +0000 (09:27 -0400)
Fixes #791

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..a505ccde27cd28d5402154d8d17856ea6888c974 100644 (file)
@@ -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;
index 33ba06981af263a7a90bc0ae7d3f6aca9c85ecb8..723e4a44c8e004b9629ea8c4d769e8ec244b60e7 100644 (file)
@@ -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;
index dc0748501b4b1ea6ab2bb5f442e37be4383d37c4..1ec7be43e3e30d069e064c4d8e14b1624d0b35a2 100644 (file)
@@ -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;
index d0814cdae08534e1aa2d20bbb257154e5b64677f..bdd5b0928fb9081ae9c312fcdde84b509dd9107d 100644 (file)
@@ -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;
index 07ab72b4d5870a808137f5cbba39bc9bdd8857ad..deabdbf12307aca0ee339d2cfcf1c77264696fbe 100644 (file)
@@ -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;
index c74f8b72cf1ae177c5bfdbe343e7c3ad058428cb..f64367112020f551ed3ce3d87261537283c78e07 100644 (file)
@@ -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;
This page took 0.028368 seconds and 4 git commands to generate.