diff --git a/.globalconfig b/.globalconfig index 0439bba2947..9f53e02c48e 100644 --- a/.globalconfig +++ b/.globalconfig @@ -832,7 +832,7 @@ dotnet_diagnostic.IDE0034.severity = silent dotnet_diagnostic.IDE0035.severity = silent # OrderModifiers -dotnet_diagnostic.IDE0036.severity = suggestion +dotnet_diagnostic.IDE0036.severity = warning # UseInferredMemberName dotnet_diagnostic.IDE0037.severity = silent diff --git a/src/powershell/Program.cs b/src/powershell/Program.cs index a2c6a7852e0..9f2af53e758 100644 --- a/src/powershell/Program.cs +++ b/src/powershell/Program.cs @@ -502,7 +502,7 @@ private static void ThrowOnFailure(string call, int code) CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, SetLastError = true)] - private static unsafe extern int SysCtl(int *mib, int mibLength, void *oldp, int *oldlenp, IntPtr newp, int newlenp); + private static extern unsafe int SysCtl(int *mib, int mibLength, void *oldp, int *oldlenp, IntPtr newp, int newlenp); #endif } }