From ba3152296c2ce30079327ecef72b167a8810ec75 Mon Sep 17 00:00:00 2001 From: Craig Dowell Date: Mon, 19 Apr 2010 08:37:27 -0700 Subject: [PATCH] repair unused returns in perfio and test-runner --- src/test/perf/perf-io.cc | 2 +- utils/test-runner.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/perf/perf-io.cc b/src/test/perf/perf-io.cc index e5ff44a00..0a74a063e 100644 --- a/src/test/perf/perf-io.cc +++ b/src/test/perf/perf-io.cc @@ -50,7 +50,7 @@ PerfFile (FILE *file, uint32_t n, const char *buffer, uint32_t size) { for (uint32_t i = 0; i < n; ++i) { - fwrite (buffer, 1, size, file); + size_t __attribute__ ((unused)) result = fwrite (buffer, 1, size, file); } } diff --git a/utils/test-runner.cc b/utils/test-runner.cc index f43b0c333..a524e5385 100644 --- a/utils/test-runner.cc +++ b/utils/test-runner.cc @@ -107,7 +107,7 @@ BaseDir (void) // depends on the leading '/' // char pathbuf[PATH_MAX]; - getcwd (pathbuf, sizeof(pathbuf)); + char * __attribute__ ((unused)) p = getcwd (pathbuf, sizeof(pathbuf)); // // Walk up the directory tree looking for a directory that has files that