Fix compilation warnings in gcinfoencoder.
authorAndy Ayers <andya@microsoft.com>
Thu, 3 Sep 2015 21:11:36 +0000 (14:11 -0700)
committerAndy Ayers <andya@microsoft.com>
Thu, 3 Sep 2015 21:11:36 +0000 (14:11 -0700)
Add fake uses for two variables referenced only in asserts.

src/gcinfo/gcinfoencoder.cpp

index 0b243ab..b6c8b5a 100644 (file)
@@ -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);