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