[clang] 19adc69 - [analyzer] Add [[maybe_unused]] forgotten in 57e36419b251 (#131617)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 07:00:50 PDT 2025
Author: Balazs Benics
Date: 2025-03-17T15:00:45+01:00
New Revision: 19adc69029ba090d9eae3b89069dee7eadb1bd26
URL: https://github.com/llvm/llvm-project/commit/19adc69029ba090d9eae3b89069dee7eadb1bd26
DIFF: https://github.com/llvm/llvm-project/commit/19adc69029ba090d9eae3b89069dee7eadb1bd26.diff
LOG: [analyzer] Add [[maybe_unused]] forgotten in 57e36419b251 (#131617)
Fixes
https://github.com/llvm/llvm-project/pull/131175#discussion_r1998764727
Added:
Modified:
clang/lib/StaticAnalyzer/Core/EntryPointStats.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Core/EntryPointStats.cpp b/clang/lib/StaticAnalyzer/Core/EntryPointStats.cpp
index 617002cce90eb..b7f9044f65308 100644
--- a/clang/lib/StaticAnalyzer/Core/EntryPointStats.cpp
+++ b/clang/lib/StaticAnalyzer/Core/EntryPointStats.cpp
@@ -80,7 +80,7 @@ void EntryPointStat::lockRegistry() {
StatsRegistry->IsLocked = true;
}
-static bool isRegistered(llvm::StringLiteral Name) {
+[[maybe_unused]] static bool isRegistered(llvm::StringLiteral Name) {
auto ByName = [Name](const EntryPointStat *M) { return M->name() == Name; };
bool Result = false;
enumerateStatVectors([ByName, &Result](const auto &Stats) {
More information about the cfe-commits
mailing list