[cfe-commits] r155011 - /cfe/trunk/lib/Frontend/TextDiagnostic.cpp
Matt Beaumont-Gay
matthewbg at google.com
Wed Apr 18 10:25:16 PDT 2012
Author: matthewbg
Date: Wed Apr 18 12:25:16 2012
New Revision: 155011
URL: http://llvm.org/viewvc/llvm-project?rev=155011&view=rev
Log:
Suppress -Wunused-variable warning in -Asserts build
Modified:
cfe/trunk/lib/Frontend/TextDiagnostic.cpp
Modified: cfe/trunk/lib/Frontend/TextDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/TextDiagnostic.cpp?rev=155011&r1=155010&r2=155011&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/TextDiagnostic.cpp (original)
+++ cfe/trunk/lib/Frontend/TextDiagnostic.cpp Wed Apr 18 12:25:16 2012
@@ -114,6 +114,7 @@
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 @@
OS << "\"\n";
}
}
-
More information about the cfe-commits
mailing list