r220313 - Removing unused variable (assigned into, but never read from); NFC.
Aaron Ballman
aaron at aaronballman.com
Tue Oct 21 12:37:57 PDT 2014
Author: aaronballman
Date: Tue Oct 21 14:37:56 2014
New Revision: 220313
URL: http://llvm.org/viewvc/llvm-project?rev=220313&view=rev
Log:
Removing unused variable (assigned into, but never read from); NFC.
Modified:
cfe/trunk/lib/Driver/WindowsToolChain.cpp
Modified: cfe/trunk/lib/Driver/WindowsToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/WindowsToolChain.cpp?rev=220313&r1=220312&r2=220313&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/WindowsToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/WindowsToolChain.cpp Tue Oct 21 14:37:56 2014
@@ -138,7 +138,6 @@ static bool getSystemRegistryString(cons
&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(cons
lResult = RegQueryValueEx(hKey, valueName, NULL, &valueType,
(LPBYTE)value, &valueSize);
if (lResult == ERROR_SUCCESS) {
- bestIndex = (int)index;
bestValue = dvalue;
returnValue = true;
}
More information about the cfe-commits
mailing list