r343721 - [test] Fix -Wunused-variable in rC343665

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 3 13:53:53 PDT 2018


Author: maskray
Date: Wed Oct  3 13:53:53 2018
New Revision: 343721

URL: http://llvm.org/viewvc/llvm-project?rev=343721&view=rev
Log:
[test] Fix -Wunused-variable in rC343665

Modified:
    cfe/trunk/unittests/ASTMatchers/Dynamic/ParserTest.cpp

Modified: cfe/trunk/unittests/ASTMatchers/Dynamic/ParserTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/ASTMatchers/Dynamic/ParserTest.cpp?rev=343721&r1=343720&r2=343721&view=diff
==============================================================================
--- cfe/trunk/unittests/ASTMatchers/Dynamic/ParserTest.cpp (original)
+++ cfe/trunk/unittests/ASTMatchers/Dynamic/ParserTest.cpp Wed Oct  3 13:53:53 2018
@@ -183,7 +183,7 @@ TEST(ParserTest, ParseMatcher) {
 
 TEST(ParserTest, ParseComment) {
   MockSema Sema;
-  const uint64_t ExpectedFoo = Sema.expectMatcher("Foo");
+  Sema.expectMatcher("Foo");
   Sema.parse(" Foo() # Bar() ");
   for (const auto &E : Sema.Errors) {
     EXPECT_EQ("", E);




More information about the cfe-commits mailing list