From: Fariborz Jahanian Date: Tue, 7 Sep 2010 19:57:04 +0000 (+0000) Subject: get rid of a warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7ddfb974884ec75ffd66953b79511ea457493ba;p=clang get rid of a warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113256 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 6a527a229e..173fbf4ff7 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -1494,9 +1494,9 @@ GetConstantCFStringEntry(llvm::StringMap &Map, const UTF8 *FromPtr = (UTF8 *)String.data(); UTF16 *ToPtr = &ToBuf[0]; - ConversionResult Result = ConvertUTF8toUTF16(&FromPtr, FromPtr + NumBytes, - &ToPtr, ToPtr + NumBytes, - strictConversion); + (void)ConvertUTF8toUTF16(&FromPtr, FromPtr + NumBytes, + &ToPtr, ToPtr + NumBytes, + strictConversion); // ConvertUTF8toUTF16 returns the length in ToPtr. StringLength = ToPtr - &ToBuf[0];