Skip to content

Commit

Permalink
Fix undefined locals in desktop test builds. (dotnet#6073)
Browse files Browse the repository at this point in the history
When for desktop out of the ProjectK branch, the previous change left unassigned member variables.  Moved the pragma to include them.
  • Loading branch information
mikem8361 authored Jun 30, 2016
1 parent e2c429b commit 24a53c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mscorlib/src/System/Diagnostics/Stacktrace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ internal class StackFrameHelper : IDisposable
// this field is here only for backwards compatibility of serialization format
private MethodBase[] rgMethodBase;

#pragma warning disable 414 // Field is not used from managed.
#pragma warning disable 414
// dynamicMethods is an array of System.Resolver objects, used to keep
// DynamicMethodDescs alive for the lifetime of StackFrameHelper.
private Object dynamicMethods;
#pragma warning restore 414
private Object dynamicMethods; // Field is not used from managed.

[NonSerialized]
private IntPtr[] rgMethodHandle;
Expand All @@ -56,6 +55,7 @@ internal class StackFrameHelper : IDisposable
#endif // FEATURE_EXCEPTIONDISPATCHINFO
private GetSourceLineInfoDelegate getSourceLineInfo;
private int iFrameCount;
#pragma warning restore 414

private delegate void GetSourceLineInfoDelegate(string assemblyPath, IntPtr loadedPeAddress, int loadedPeSize,
IntPtr inMemoryPdbAddress, int inMemoryPdbSize, int methodToken, int ilOffset,
Expand Down

0 comments on commit 24a53c5

Please sign in to comment.