Skip to content

Commit fe59b81

Browse files
committed
work-around clang-scan false-positives
Change-Id: I4dc246cfbabd7d42dc471bbe66b23549eb7c7352
1 parent a16aef7 commit fe59b81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pcm-raw.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,7 @@ void printTransposed(const PCM::RawPMUConfigs& curPMUConfigs,
11611161
}
11621162
else if (outputType == Data)
11631163
{
1164+
assert(metricFunc);
11641165
cout << separator << metricFunc(u, i, BeforeUncoreState[s], AfterUncoreState[s]);
11651166
}
11661167
else if (outputType == Header21)
@@ -1170,6 +1171,7 @@ void printTransposed(const PCM::RawPMUConfigs& curPMUConfigs,
11701171
}
11711172
else if (outputType == Json)
11721173
{
1174+
assert(metricFunc);
11731175
cout << separator << type << "_SKT" << s << "_" << miscName << u
11741176
<< jsonSeparator << metricFunc(u, i, BeforeUncoreState[s], AfterUncoreState[s]);
11751177
}

0 commit comments

Comments
 (0)