summaryrefslogtreecommitdiff
path: root/src/md
diff options
context:
space:
mode:
authorRobin Sue <robinsue@live.de>2018-06-03 20:12:26 +0200
committerSergey Andreenko <seandree@microsoft.com>2018-06-03 11:12:26 -0700
commitb31ec0562a7e916301585001968ac5522aa20e84 (patch)
treec386d6d267f005083a61d8d0085e0ad612e42924 /src/md
parent9791a661155d08f85f862bfc37eff3cd8d7b25cc (diff)
downloadcoreclr-b31ec0562a7e916301585001968ac5522aa20e84.tar.gz
coreclr-b31ec0562a7e916301585001968ac5522aa20e84.tar.bz2
coreclr-b31ec0562a7e916301585001968ac5522aa20e84.zip
Warnings cleanup (#18260)
* Cleanup all disabled warnings that do not trigger * Fix warning about line continuation in single line comment * Eliminiate all unreferenced local variables and reenable warning
Diffstat (limited to 'src/md')
-rw-r--r--src/md/compiler/disp.cpp4
-rw-r--r--src/md/compiler/regmeta_vm.cpp1
-rw-r--r--src/md/winmd/adapter.cpp1
3 files changed, 2 insertions, 4 deletions
diff --git a/src/md/compiler/disp.cpp b/src/md/compiler/disp.cpp
index 15f5f11103..bf4f4104be 100644
--- a/src/md/compiler/disp.cpp
+++ b/src/md/compiler/disp.cpp
@@ -70,7 +70,6 @@ Disp::DefineScope(
HRESULT hr = S_OK;
PathString szFileName(PathString::Literal, W("file:"));
PathString szFileNameSuffix;
- DWORD len;
BEGIN_ENTRYPOINT_NOTHROW;
RegMeta *pMeta = 0;
@@ -99,7 +98,8 @@ Disp::DefineScope(
#ifdef ENC_DELTA_HACK
// Testers need this flag for their tests.
-
+
+ DWORD len;
EX_TRY{
len = WszGetEnvironmentVariable(W("COMP_ENC_OPENSCOPE"), szFileNameSuffix);
szFileName.Append(szFileNameSuffix);
diff --git a/src/md/compiler/regmeta_vm.cpp b/src/md/compiler/regmeta_vm.cpp
index 5948d2aa88..4b227add89 100644
--- a/src/md/compiler/regmeta_vm.cpp
+++ b/src/md/compiler/regmeta_vm.cpp
@@ -166,7 +166,6 @@ RegMeta::ResolveTypeRef(
TypeRefRec * pTypeRefRec;
WCHAR wzNameSpace[_MAX_PATH];
CMiniMdRW * pMiniMd = NULL;
- WCHAR rcModule[_MAX_PATH];
LOG((LOGMD, "{%08x} RegMeta::ResolveTypeRef(0x%08x, 0x%08x, 0x%08x, 0x%08x)\n",
this, tr, riid, ppIScope, ptd));
diff --git a/src/md/winmd/adapter.cpp b/src/md/winmd/adapter.cpp
index d4e95b7f8b..11db22d283 100644
--- a/src/md/winmd/adapter.cpp
+++ b/src/md/winmd/adapter.cpp
@@ -1599,7 +1599,6 @@ HRESULT WinMDAdapter::ComputeMethodDefTreatment(mdMethodDef tkMethodDef, mdTypeD
mdToken tkMethodImplFirst;
ULONG count;
- mdTypeRef mtTypeRef;
IfFailGo(m_pRawMetaModelCommonRO->CommonGetMethodImpls(tkDeclaringTypeDef, &tkMethodImplFirst, &count));
for (ULONG i = 0; i < count; i++)
{