repair unused returns in perfio and test-runner

This commit is contained in:
Craig Dowell committed 2010-04-19 08:37:27 -07:00
1 parent 7f80d5b7d0
commit 3862d7d010
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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);
}
}
+1 -1
View File
@@ -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