mirror of
https://github.com/google/benchmark.git
synced 2025-01-14 22:00:33 +08:00
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.
This commit is contained in:
parent
ef1ccf4dea
commit
50f459d2c0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user