From: Matt Beaumont-Gay Date: Wed, 18 Apr 2012 17:25:16 +0000 (+0000) Subject: Suppress -Wunused-variable warning in -Asserts build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ddb097bb02ddee8f1924ee4fcca384cb18ad8c5;p=clang Suppress -Wunused-variable warning in -Asserts build git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155011 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/TextDiagnostic.cpp b/lib/Frontend/TextDiagnostic.cpp index 66362381df..65fb1ae13f 100644 --- a/lib/Frontend/TextDiagnostic.cpp +++ b/lib/Frontend/TextDiagnostic.cpp @@ -114,6 +114,7 @@ printableTextForNextCharacter(StringRef SourceLine, size_t *i, ConversionResult res = ConvertUTF8toUTF32(&begin, cp_end, &cptr, cptr+1, strictConversion); + (void)res; assert(conversionOK==res); assert(0 < begin-original_begin && "we must be further along in the string now"); @@ -1161,4 +1162,3 @@ void TextDiagnostic::emitParseableFixits(ArrayRef Hints) { OS << "\"\n"; } } -