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) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits