mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix warnings about unused variables when assertions are turned off
Swift SVN r23641
This commit is contained in:
@@ -105,6 +105,7 @@ uint64_t swift::unicode::getUTF16Length(StringRef Str) {
|
||||
strictConversion);
|
||||
assert(Result == conversionOK &&
|
||||
"UTF-8 encoded string cannot be converted into UTF-16 encoding");
|
||||
(void)Result;
|
||||
|
||||
// The length of the transcoded string in UTF-16 code points.
|
||||
Length = toPtr - &buffer[0];
|
||||
|
||||
Reference in New Issue
Block a user