]> granicus.if.org Git - clang/commitdiff
Suppress -Wunused-variable warning in -Asserts build
authorMatt Beaumont-Gay <matthewbg@google.com>
Wed, 18 Apr 2012 17:25:16 +0000 (17:25 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Wed, 18 Apr 2012 17:25:16 +0000 (17:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155011 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/TextDiagnostic.cpp

index 66362381dfc12fdbab2886f6f7b4dc400d85eca6..65fb1ae13f21fe5cb9ead19640dc480e109c1b95 100644 (file)
@@ -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<FixItHint> Hints) {
     OS << "\"\n";
   }
 }
-