Fixed unused variable warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Aug 2018 13:55:10 +0000 (13:55 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Aug 2018 13:55:10 +0000 (13:55 +0000)
llvm-svn: 339879

clang-tools-extra/unittests/clangd/FileDistanceTests.cpp

index 0d5afc9..acce245 100644 (file)
@@ -58,7 +58,8 @@ TEST(FileDistanceTests, BadSource) {
   EXPECT_EQ(D.distance("b/b/b/c"), 17u); // a+up+down+down+down+down, not b+down
 }
 
-auto UseUnittestScheme = UnittestSchemeAnchorSource;
+// Force the unittest URI scheme to be linked,
+static int LLVM_ATTRIBUTE_UNUSED UseUnittestScheme = UnittestSchemeAnchorSource;
 
 TEST(FileDistanceTests, URI) {
   FileDistanceOptions Opts;