diff options
author | Jacek Blaszczynski <biosciencenow@outlook.com> | 2018-07-30 02:56:32 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-07-29 17:56:32 -0700 |
commit | 93cf012db8396f5ea16f70b781a5de0d012fc65d (patch) | |
tree | d9aa866239a1adccdae9dbdfcdacae8ee1cabbe0 /Directory.Build.props | |
parent | 5d31194880e800a9df8eef76e7a0a53646aa72d3 (diff) | |
download | coreclr-93cf012db8396f5ea16f70b781a5de0d012fc65d.tar.gz coreclr-93cf012db8396f5ea16f70b781a5de0d012fc65d.tar.bz2 coreclr-93cf012db8396f5ea16f70b781a5de0d012fc65d.zip |
Fix invalid IntPtr == null comparisons, set strict mode for Roslyn (#19191)
Issue reported in https://github.com/dotnet/corefx/issues/31456
Solution is to compare always against IntPtr.Zero and use Roslyn
stric mode for reporting warnings for IntPtr == null comparisons
Diffstat (limited to 'Directory.Build.props')
-rw-r--r-- | Directory.Build.props | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Directory.Build.props b/Directory.Build.props index 3efd9a363c..2082362adc 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,4 +2,8 @@ <PropertyGroup> <CL_MPCount>$(NumberOfCores)</CL_MPCount> </PropertyGroup> + <PropertyGroup> + <!-- Enables Strict mode for Roslyn compiler --> + <Features>strict</Features> + </PropertyGroup> </Project> |