Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-06-17 16:52:06 +0300
committerJan Kotas <jkotas@microsoft.com>2017-06-17 16:52:06 +0300
commit3a632d76ef670601a706dd8d20e682b5627d364d (patch)
tree913bdba26db2b066d0a6616b2386c1bee074c1b8
parent8ad71c3554bd74a792c5bfd52d8fea98e2fe1218 (diff)
Fix build warnings with latest C# compiler
[tfs-changeset: 1662020]
-rw-r--r--src/Common/src/TypeSystem/IL/Stubs/DelegateMethodILEmitter.cs2
-rw-r--r--src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.cs2
-rw-r--r--src/System.Private.CoreLib/src/System/Text/Encoding.cs3
3 files changed, 4 insertions, 3 deletions
diff --git a/src/Common/src/TypeSystem/IL/Stubs/DelegateMethodILEmitter.cs b/src/Common/src/TypeSystem/IL/Stubs/DelegateMethodILEmitter.cs
index 32fa232e9..ef798375d 100644
--- a/src/Common/src/TypeSystem/IL/Stubs/DelegateMethodILEmitter.cs
+++ b/src/Common/src/TypeSystem/IL/Stubs/DelegateMethodILEmitter.cs
@@ -29,7 +29,7 @@ namespace Internal.IL.Stubs
if (method.Name == ".ctor")
{
// We only support delegate creation if the IL follows the delegate creation verifiability requirements
- // described in ECMA-335 III.4.21 (newobj – create a new object). The codegen is expected to
+ // described in ECMA-335 III.4.21 (newobj - create a new object). The codegen is expected to
// intrinsically expand the pattern.
// If the delegate creation doesn't follow the pattern, we generate code that throws at runtime.
// We could potentially implement this (unreliably) through the use of reflection metadata,
diff --git a/src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.cs b/src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.cs
index aa960c752..6ad477ead 100644
--- a/src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.cs
+++ b/src/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.cs
@@ -13,6 +13,7 @@ namespace System.Runtime.Loader
public static Assembly[] GetLoadedAssemblies() => ReflectionAugments.ReflectionCoreCallbacks.GetLoadedAssemblies();
// These events are never called
+#pragma warning disable 0067
public static event AssemblyLoadEventHandler AssemblyLoad;
public static event ResolveEventHandler TypeResolve;
public static event ResolveEventHandler ResourceResolve;
@@ -20,6 +21,7 @@ namespace System.Runtime.Loader
public event Func<AssemblyLoadContext, AssemblyName, Assembly> Resolving;
public event Action<AssemblyLoadContext> Unloading;
+#pragma warning restore 0067
public static AssemblyLoadContext Default { get; } = new DefaultAssemblyLoadContext();
diff --git a/src/System.Private.CoreLib/src/System/Text/Encoding.cs b/src/System.Private.CoreLib/src/System/Text/Encoding.cs
index 99b3dda9a..6c50e7cd5 100644
--- a/src/System.Private.CoreLib/src/System/Text/Encoding.cs
+++ b/src/System.Private.CoreLib/src/System/Text/Encoding.cs
@@ -147,7 +147,6 @@ namespace System.Text
internal CodePageDataItem dataItem = null;
- private string _webName = null;
private string _encodingName = null;
// Because of encoders we may be read only
@@ -179,7 +178,7 @@ namespace System.Text
}
// This constructor is needed to allow any sub-classing implementation to provide encoder/decoder fallback objects
- // because the encoding object is always created as read-only object and don’t allow setting encoder/decoder fallback
+ // because the encoding object is always created as read-only object and don't allow setting encoder/decoder fallback
// after the creation is done.
protected Encoding(int codePage, EncoderFallback encoderFallback, DecoderFallback decoderFallback)
{