From 1c31ee8f9bf8c4de29cd8ca42dfe0fb37aa2bf52 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Tue, 6 Mar 2012 21:18:56 +0000 Subject: [PATCH] get rid of an unsued variable warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152146 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Lex/LexerTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/Lex/LexerTest.cpp b/unittests/Lex/LexerTest.cpp index 56581fcc63..e43ad86ff5 100644 --- a/unittests/Lex/LexerTest.cpp +++ b/unittests/Lex/LexerTest.cpp @@ -66,7 +66,7 @@ TEST_F(LexerTest, LexAPI) { "N(INN(val)) N(NOF1) N(NOF2) N(val)"; MemoryBuffer *buf = MemoryBuffer::getMemBuffer(source); - FileID mainFileID = SourceMgr.createMainFileIDForMemBuffer(buf); + (void)SourceMgr.createMainFileIDForMemBuffer(buf); VoidModuleLoader ModLoader; HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts, Target.getPtr());