Skip to content

Commit 05b26ca

Browse files
authored
[BUILD] error: read-only reference ‘value’ used as ‘asm’ output (#2354)
1 parent 0eaa794 commit 05b26ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sdk/test/trace/sampler_benchmark.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ void BM_AlwaysOnSamplerConstruction(benchmark::State &state)
4242
}
4343
BENCHMARK(BM_AlwaysOnSamplerConstruction);
4444

45+
/*
46+
Fails to build with GCC.
47+
See upstream bug: https://github.com/google/benchmark/issues/1675
48+
*/
49+
#if 0
4550
void BM_ParentBasedSamplerConstruction(benchmark::State &state)
4651
{
4752
while (state.KeepRunning())
@@ -59,6 +64,7 @@ void BM_TraceIdRatioBasedSamplerConstruction(benchmark::State &state)
5964
}
6065
}
6166
BENCHMARK(BM_TraceIdRatioBasedSamplerConstruction);
67+
#endif
6268

6369
// Sampler Helper Function
6470
void BenchmarkShouldSampler(Sampler &sampler, benchmark::State &state)

0 commit comments

Comments
 (0)