From: Daniel Dunbar Date: Tue, 23 Jun 2009 23:09:58 +0000 (+0000) Subject: Fix warning when building w/o asserts. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5eee090e3880f3763a9a81a6780a84829f1c6bd0;p=clang Fix warning when building w/o asserts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74020 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp index 31c7e14d5c..69b6be79d1 100644 --- a/lib/Basic/SourceManager.cpp +++ b/lib/Basic/SourceManager.cpp @@ -1047,6 +1047,7 @@ bool SourceManager::isBeforeInTranslationUnit(SourceLocation LHS, // FIXME: Should there be a way to "include" memory buffers in the translation // unit ? assert((LEntry != 0 || REntry != 0) && "Locations in memory buffers."); + (void) REntry; // Consider the memory buffer as coming before the file in the translation // unit.