repair unused returns in perfio and test-runner
authorCraig Dowell <craigdo@ee.washington.edu>
Mon, 19 Apr 2010 08:37:27 -0700
changeset 6245 a88bde26913e
parent 6243 a597d6d2da85
child 6246 c21414b217d3
repair unused returns in perfio and test-runner
src/test/perf/perf-io.cc
utils/test-runner.cc
--- a/src/test/perf/perf-io.cc	Sat Apr 17 17:36:53 2010 +0100
+++ b/src/test/perf/perf-io.cc	Mon Apr 19 08:37:27 2010 -0700
@@ -50,7 +50,7 @@
 {
   for (uint32_t i = 0; i < n; ++i)
     {
-      fwrite (buffer, 1, size, file);
+      size_t __attribute__ ((unused)) result = fwrite (buffer, 1, size, file);
     }
 }
 
--- a/utils/test-runner.cc	Sat Apr 17 17:36:53 2010 +0100
+++ b/utils/test-runner.cc	Mon Apr 19 08:37:27 2010 -0700
@@ -107,7 +107,7 @@
   // 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