Switch gnu::unused to maybe_unused (#3592)

Preferring the C+11 name, [reflecting old
discussion](https://discord.com/channels/655572317891461132/655578254970716160/1171977169556230164)
This commit is contained in:
Jon Ross-Perkins
2024-01-11 22:55:54 +00:00
committed by GitHub
parent 93bd97c289
commit 3d2b4f8ae7
+4 -4
View File
@@ -590,17 +590,17 @@ void BM_GroupingSymbols(benchmark::State& state) {
os.indent(j * 2) << "{\n";
}
os.indent(curly_brace_depth * 2);
for ([[gnu::unused]] int j : llvm::seq(paren_depth)) {
for ([[maybe_unused]] int j : llvm::seq(paren_depth)) {
os << "(";
}
for ([[gnu::unused]] int j : llvm::seq(square_bracket_depth)) {
for ([[maybe_unused]] int j : llvm::seq(square_bracket_depth)) {
os << "[";
}
os << ids[(i * 2) % NumTokens];
for ([[gnu::unused]] int j : llvm::seq(square_bracket_depth)) {
for ([[maybe_unused]] int j : llvm::seq(square_bracket_depth)) {
os << "]";
}
for ([[gnu::unused]] int j : llvm::seq(paren_depth)) {
for ([[maybe_unused]] int j : llvm::seq(paren_depth)) {
os << ")";
}
for (int j : llvm::reverse(llvm::seq(curly_brace_depth))) {