llvm-project/libcxx/benchmarks/allocation.bench.cpp:80:16: warning: unused variable 'End' [-Wunused-variable] 80 | void** const End = Pointers.data() + Pointers.size(); |
End is used in assert later, but benchmarks usually built in release
mode, so this warning triggers every time.
llvm-project/libcxx/benchmarks/monotonic_buffer.bench.cpp:19:26: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long long') [-Wsign-compare] 19 | for (size_t i = 0; i != state.range(); ++i) { |
Made variable i type int64_t instead of size_t.
I prefer a [[maybe_unused]] attribute instead. That makes it easier to inspect the value in the debugger.