From: Fariborz Jahanian Date: Tue, 31 Aug 2010 23:54:38 +0000 (+0000) Subject: Prevent warning when built with assert off. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b6542cbc120f6db0bb8f593e050dae8a09a7281;p=clang Prevent warning when built with assert off. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112680 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp index c758b40032..fb543d0f03 100644 --- a/lib/Lex/LiteralSupport.cpp +++ b/lib/Lex/LiteralSupport.cpp @@ -217,6 +217,7 @@ static void ProcessUCNEscape(const char *&ThisTokBuf, const char *ThisTokEnd, return; } if (wide) { + (void)UcnLenSave; assert(UcnLenSave == 4 && "ProcessUCNEscape - only ucn length of 4 supported"); // little endian assumed.