summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Ellis <matell@microsoft.com>2015-02-03 10:18:32 -0800
committerMatt Ellis <matell@microsoft.com>2015-02-03 10:18:32 -0800
commit935c8a1e67d2f32bc7395b9125a1d434946c8ab6 (patch)
treea8b7ad77950e480cbcbf924f9325a0f9db3da97b /src
parent2f8d015389c8408dc042991b5df7812ecdd892fe (diff)
downloadcoreclr-935c8a1e67d2f32bc7395b9125a1d434946c8ab6.tar.gz
coreclr-935c8a1e67d2f32bc7395b9125a1d434946c8ab6.tar.bz2
coreclr-935c8a1e67d2f32bc7395b9125a1d434946c8ab6.zip
Fix mscorlib warnings.
PinnableBufferCache uses some of the declaritive CAS attributes which don't mean anything on CoreCLR. We had disabled this warning internally, but this copy of the file is specific to open source and we didn't disable it in this file. This simply ports the change to disable this warning to mscorlib's copy of the file.
Diffstat (limited to 'src')
-rw-r--r--src/mscorlib/Common/PinnableBufferCache.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mscorlib/Common/PinnableBufferCache.cs b/src/mscorlib/Common/PinnableBufferCache.cs
index c850663196..7368c2d927 100644
--- a/src/mscorlib/Common/PinnableBufferCache.cs
+++ b/src/mscorlib/Common/PinnableBufferCache.cs
@@ -45,7 +45,9 @@ namespace System
/// This is only used in mscorlib.
/// </summary>
#if (ENABLE || MINBUFFERS)
+#pragma warning disable 618
[EnvironmentPermission(SecurityAction.Assert, Unrestricted = true)]
+#pragma warning restore 618
[System.Security.SecuritySafeCritical]
#endif
internal PinnableBufferCache(string cacheName, Func<object> factory)