From: Ted Kremenek Date: Tue, 2 Oct 2012 21:50:18 +0000 (+0000) Subject: Silence -Wunused-value warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86e7b7e4421eacdd5ae610a0fb2d8ea5dec5e644;p=clang Silence -Wunused-value warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165059 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp b/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp index 2b957c419a..e2b7cfc521 100644 --- a/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp +++ b/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp @@ -111,6 +111,7 @@ int AnalyzerOptions::getOptionAsInteger(StringRef Name, int DefaultVal) { int Res = DefaultVal; bool b = V.getAsInteger(10, Res); assert(!b && "analyzer-config option should be numeric"); + (void) b; return Res; }