[cfe-commits] r152146 - /cfe/trunk/unittests/Lex/LexerTest.cpp

Fariborz Jahanian fjahanian at apple.com
Tue Mar 6 13:18:56 PST 2012


Author: fjahanian
Date: Tue Mar  6 15:18:56 2012
New Revision: 152146

URL: http://llvm.org/viewvc/llvm-project?rev=152146&view=rev
Log:
get rid of an unsued variable warning.


Modified:
    cfe/trunk/unittests/Lex/LexerTest.cpp

Modified: cfe/trunk/unittests/Lex/LexerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Lex/LexerTest.cpp?rev=152146&r1=152145&r2=152146&view=diff
==============================================================================
--- cfe/trunk/unittests/Lex/LexerTest.cpp (original)
+++ cfe/trunk/unittests/Lex/LexerTest.cpp Tue Mar  6 15:18:56 2012
@@ -66,7 +66,7 @@
     "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());





More information about the cfe-commits mailing list