Fix compilation of dbgtransportsession (#2247)
authorSteve MacLean <Steve.MacLean@microsoft.com>
Tue, 28 Jan 2020 01:11:15 +0000 (20:11 -0500)
committerGitHub <noreply@github.com>
Tue, 28 Jan 2020 01:11:15 +0000 (20:11 -0500)
Fix unused variable warnings when RIGHT_SIDE_COMPILE is not defined

src/coreclr/src/debug/shared/dbgtransportsession.cpp

index 80064a5..ca4b3f2 100644 (file)
@@ -1664,11 +1664,13 @@ void DbgTransportSession::TransportWorker()
         // We now loop receiving messages and processing them until the state changes.
         while (m_eState == SS_Open)
         {
+#ifndef RIGHT_SIDE_COMPILE
             // temporary data block used in DCB messages
             DebuggerIPCControlBlockTransport dcbt;
 
             // temporary virtual stack unwind context buffer
             CONTEXT frameContext;
+#endif
 
             // Read a message header block.
             if (!ReceiveBlock((PBYTE)&sReceiveHeader, sizeof(MessageHeader)))