From 270d580a0e9ff2f2e1b6240fccedee7c25dc3bfa Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Fri, 12 Jun 2020 09:48:49 -0700 Subject: [PATCH] [analyzer] Avoid unused variable warning in opt build --- clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp index 4a7e0d9..461d08f 100644 --- a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp +++ b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp @@ -297,7 +297,9 @@ CheckerRegistry::CheckerRegistry( "A strong dependency mustn't have weak dependencies!"); assert(WeakDepPair.second != DepPair.second && "A strong dependency mustn't be a weak dependency as well!"); + (void)WeakDepPair; } + (void)DepPair; } #endif -- 2.7.4