summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-03-06 21:18:56 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-03-06 21:18:56 +0000
commit1c31ee8f9bf8c4de29cd8ca42dfe0fb37aa2bf52 (patch)
tree052cc902653ac0d800e3aee0cf3dd006d1ef49ca /unittests
parent634a4b1b045b13e7ddfa57934cf2b85d4348f77f (diff)
get rid of an unsued variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Lex/LexerTest.cpp2
1 files changed, 1 insertions, 1 deletions
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());