Browse Source

Get rid of warnings in release build.

pull/70/head
Daniel Grunwald 16 years ago
parent
commit
368e39bf19
  1. 2
      ILSpy/CSharpLanguage.cs
  2. 6
      ILSpy/ILAstLanguage.cs

2
ILSpy/CSharpLanguage.cs

@ -40,7 +40,7 @@ namespace ICSharpCode.ILSpy @@ -40,7 +40,7 @@ namespace ICSharpCode.ILSpy
public class CSharpLanguage : Language
{
string name = "C#";
bool showAllMembers;
bool showAllMembers = false;
Predicate<IAstTransform> transformAbortCondition = null;
public CSharpLanguage()

6
ILSpy/ILAstLanguage.cs

@ -30,10 +30,11 @@ using Mono.Cecil; @@ -30,10 +30,11 @@ using Mono.Cecil;
namespace ICSharpCode.ILSpy
{
#if DEBUG
/// <summary>
/// Represents the ILAst "language" used for debugging purposes.
/// </summary>
public class ILAstLanguage : Language
sealed class ILAstLanguage : Language
{
string name;
bool inlineVariables = true;
@ -78,7 +79,6 @@ namespace ICSharpCode.ILSpy @@ -78,7 +79,6 @@ namespace ICSharpCode.ILSpy
}
}
#if DEBUG
internal static IEnumerable<ILAstLanguage> GetDebugLanguages()
{
yield return new ILAstLanguage { name = "ILAst (unoptimized)", inlineVariables = false };
@ -89,7 +89,6 @@ namespace ICSharpCode.ILSpy @@ -89,7 +89,6 @@ namespace ICSharpCode.ILSpy
}
}
#endif
public override string FileExtension {
get {
@ -104,4 +103,5 @@ namespace ICSharpCode.ILSpy @@ -104,4 +103,5 @@ namespace ICSharpCode.ILSpy
return output.ToString();
}
}
#endif
}

Loading…
Cancel
Save