Skip to content

Commit

Permalink
[llvm-exegesis] Fix -Wunused-variable in BenchmarkRunner.cpp (NFC)
Browse files Browse the repository at this point in the history
/llvm-project/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp:415:18:
error: unused variable 'CurrentCPU' [-Werror,-Wunused-variable]
    unsigned int CurrentCPU;
                 ^
1 error generated.
  • Loading branch information
DamonFool committed Sep 23, 2024
1 parent 8632e8b commit cd80ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ class SubProcessFunctionExecutorImpl

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

0 comments on commit cd80ed4

Please sign in to comment.