From 50f459d2c0110b5ea752455a2094fc83abe83ff5 Mon Sep 17 00:00:00 2001 From: Arne Beer Date: Sun, 6 Apr 2014 16:42:24 +0200 Subject: [PATCH] Unable to compile because of unused parameter There is a unused parameter at benchmark:866 Benchmark::MeasurePeakHeapMemory . The function is marked as TODO and the code that uses the parameter is commented out. I just removed the parameter so it can compile again without editing the CMake compile flags. --- src/benchmark.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/benchmark.cc b/src/benchmark.cc index 60145909..dc8c6f3f 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -863,7 +863,7 @@ void Benchmark::RunInstance(const Instance& b, const BenchmarkReporter* br) { // Run the specified benchmark, measure its peak memory usage, and // return the peak memory usage. -double Benchmark::MeasurePeakHeapMemory(const Instance& b) { +double Benchmark::MeasurePeakHeapMemory() { if (!get_memory_usage) return 0.0; double bytes = 0.0; /* TODO(dominich)