summaryrefslogtreecommitdiff
path: root/src/gcinfo
diff options
context:
space:
mode:
authorAndy Ayers <andya@microsoft.com>2015-09-03 14:11:36 -0700
committerAndy Ayers <andya@microsoft.com>2015-09-03 14:11:36 -0700
commit72d82fa84a58034a1317ababa18562ba60d23d6e (patch)
tree3eabfb920cf02ed9a259f7e0dcbc818f40801fbe /src/gcinfo
parentb1305dfa2df32e90f9e4fc28ea7cdc2d155672dc (diff)
downloadcoreclr-72d82fa84a58034a1317ababa18562ba60d23d6e.tar.gz
coreclr-72d82fa84a58034a1317ababa18562ba60d23d6e.tar.bz2
coreclr-72d82fa84a58034a1317ababa18562ba60d23d6e.zip
Fix compilation warnings in gcinfoencoder.
Add fake uses for two variables referenced only in asserts.
Diffstat (limited to 'src/gcinfo')
-rw-r--r--src/gcinfo/gcinfoencoder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gcinfo/gcinfoencoder.cpp b/src/gcinfo/gcinfoencoder.cpp
index 0b243ab901..b6c8b5a15e 100644
--- a/src/gcinfo/gcinfoencoder.cpp
+++ b/src/gcinfo/gcinfoencoder.cpp
@@ -1526,6 +1526,7 @@ void GcInfoEncoder::Build()
UINT32 liveStateOffset;
bool found = hashMap.Lookup(&liveState, &liveStateOffset);
_ASSERTE(found);
+ (void)found;
GCINFO_WRITE(m_Info1, liveStateOffset, numBitsPerPointer, CallSiteStateSize);
@@ -1550,6 +1551,7 @@ void GcInfoEncoder::Build()
UINT32 liveStateOffset;
bool found = hashMap.Lookup(&liveState, &liveStateOffset);
_ASSERTE(found);
+ (void)found;
for( ; callSiteIndex < m_NumCallSites; callSiteIndex++)
{
GCINFO_WRITE(m_Info1, liveStateOffset, numBitsPerPointer, CallSiteStateSize);