Skip to content

Commit cd80ed4

Browse files
committed
[llvm-exegesis] Fix -Wunused-variable in BenchmarkRunner.cpp (NFC)
/llvm-project/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp:415:18: error: unused variable 'CurrentCPU' [-Werror,-Wunused-variable] unsigned int CurrentCPU; ^ 1 error generated.
1 parent 8632e8b commit cd80ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ class SubProcessFunctionExecutorImpl
412412

413413
// Check (if assertions are enabled) that we are actually running on the
414414
// CPU that was specified by the user.
415-
unsigned int CurrentCPU;
415+
[[maybe_unused]] unsigned int CurrentCPU;
416416
assert(getcpu(&CurrentCPU, nullptr) == 0 &&
417417
"Expected getcpu call to succeed.");
418418
assert(static_cast<int>(CurrentCPU) == CPUToUse &&

0 commit comments

Comments
 (0)