projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a6f364
)
Removing unused variable (assigned into, but never read from); NFC.
author
Aaron Ballman
<aaron@aaronballman.com>
Tue, 21 Oct 2014 19:37:56 +0000
(19:37 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Tue, 21 Oct 2014 19:37:56 +0000
(19:37 +0000)
llvm-svn: 220313
clang/lib/Driver/WindowsToolChain.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Driver/WindowsToolChain.cpp
b/clang/lib/Driver/WindowsToolChain.cpp
index
ca4aa67
..
5b54ca6
100644
(file)
--- a/
clang/lib/Driver/WindowsToolChain.cpp
+++ b/
clang/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;
}