Skip to content

Commit

Permalink
Fix mscorlib warnings.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ellismg committed Feb 3, 2015
1 parent 2f8d015 commit 935c8a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mscorlib/Common/PinnableBufferCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ internal sealed class PinnableBufferCache
/// 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)
Expand Down

0 comments on commit 935c8a1

Please sign in to comment.