diff --git a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp --- a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp +++ b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp @@ -273,7 +273,7 @@ resolveDependencies(); resolveDependencies(); -#ifndef NDEBUG // avoid -Wunused warnings in release build. +#ifndef NDEBUG for (auto &DepPair : Dependencies) { for (auto &WeakDepPair : WeakDependencies) { // Some assertions to enforce that strong dependencies are relations in @@ -285,9 +285,7 @@ "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