From 358918e8dd375e41b4f51e7570a57e123b2951c6 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 17 Nov 2015 20:38:54 +0000 Subject: [PATCH] Fix -Wunused-function in a non-Win32 build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253373 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index e325f9a1c65..3f626f87888 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -360,6 +360,7 @@ TEST(Support, TempDirectory) { EXPECT_TRUE(!TempDir.empty()); } +#ifdef LLVM_ON_WIN32 static std::string path2regex(std::string Path) { size_t Pos = 0; while ((Pos = Path.find('\\', Pos)) != std::string::npos) { @@ -381,7 +382,6 @@ static std::string path2regex(std::string Path) { }, \ ::testing::ExitedWithCode(0), path2regex(expected)) -#ifdef LLVM_ON_WIN32 TEST(SupportDeathTest, TempDirectoryOnWindows) { // In this test we want to check how system_temp_directory responds to // different values of specific env vars. To prevent corrupting env vars of -- 2.34.1