From 071286fe7106d91d706816e06fdf72bd5dddbcef Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 21 Oct 2014 19:37:56 +0000 Subject: [PATCH] Removing unused variable (assigned into, but never read from); NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220313 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/WindowsToolChain.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Driver/WindowsToolChain.cpp b/lib/Driver/WindowsToolChain.cpp index ca4aa6780b..5b54ca6807 100644 --- a/lib/Driver/WindowsToolChain.cpp +++ b/lib/Driver/WindowsToolChain.cpp @@ -138,7 +138,6 @@ static bool getSystemRegistryString(const char *keyPath, const char *valueName, &hTopKey); if (lResult == ERROR_SUCCESS) { char keyName[256]; - int bestIndex = -1; double bestValue = 0.0; DWORD index, size = sizeof(keyName) - 1; for (index = 0; RegEnumKeyEx(hTopKey, index, keyName, &size, NULL, @@ -168,7 +167,6 @@ static bool getSystemRegistryString(const char *keyPath, const char *valueName, lResult = RegQueryValueEx(hKey, valueName, NULL, &valueType, (LPBYTE)value, &valueSize); if (lResult == ERROR_SUCCESS) { - bestIndex = (int)index; bestValue = dvalue; returnValue = true; } -- 2.40.0