Skip to content

Commit

Permalink
address clang scan warning
Browse files Browse the repository at this point in the history
Change-Id: Ie810caa4c6bb6580096629b92ac8287326a46fbe
  • Loading branch information
rdementi committed Nov 17, 2023
1 parent 495e634 commit c6b5403
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cpucounters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1466,6 +1466,7 @@ bool PCM::discoverSystemTopology()
MSR.push_back(std::make_shared<SafeMsrHandle>(i));
}

assert(num_cores > 0);
TopologyEntry entries[num_cores];
if (MSR[0]->buildTopology(num_cores, entries) != 0) {
std::cerr << "Unable to build CPU topology" << std::endl;
Expand Down

0 comments on commit c6b5403

Please sign in to comment.