Skip to content

Commit 19adc69

Browse files
authored
[analyzer] Add [[maybe_unused]] forgotten in 57e3641 (llvm#131617)
Fixes llvm#131175 (comment)
1 parent 1e89a76 commit 19adc69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/StaticAnalyzer/Core/EntryPointStats.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void EntryPointStat::lockRegistry() {
8080
StatsRegistry->IsLocked = true;
8181
}
8282

83-
static bool isRegistered(llvm::StringLiteral Name) {
83+
[[maybe_unused]] static bool isRegistered(llvm::StringLiteral Name) {
8484
auto ByName = [Name](const EntryPointStat *M) { return M->name() == Name; };
8585
bool Result = false;
8686
enumerateStatVectors([ByName, &Result](const auto &Stats) {

0 commit comments

Comments
 (0)