]> granicus.if.org Git - clang/commitdiff
[test] Fix -Wunused-variable in rC343665
authorFangrui Song <maskray@google.com>
Wed, 3 Oct 2018 20:53:53 +0000 (20:53 +0000)
committerFangrui Song <maskray@google.com>
Wed, 3 Oct 2018 20:53:53 +0000 (20:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343721 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ASTMatchers/Dynamic/ParserTest.cpp

index cda22ef35555743c51c74f838b70416c39c813ba..9e891069c8624cf1005fdfc0286f3e85bbe5faaa 100644 (file)
@@ -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);