Skip to content

Commit 5b2a011

Browse files
author
Don Syme
committed
flags
1 parent e5623a3 commit 5b2a011

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

src/fsharp/FSharp.Core/FSharp.Core.fsproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
<!-- 3390: xmlDocBadlyFormed -->
1717
<OtherFlags>$(OtherFlags) --warnon:3390</OtherFlags>
1818
<!-- Turn off 57: Use of construct with Experimental attribute -->
19-
<OtherFlags>$(OtherFlags) --nowarn:57</OtherFlags>
2019
<!-- Turn off 3511: state machine not compilable - expected for inlined functions defining state machine generators -->
2120
<!-- Turn off 3513: resumable code invocation' - expected for resumable code combinators -->
22-
<OtherFlags>$(OtherFlags) --nowarn:3511 --nowarn:3513</OtherFlags>
21+
<NoWarn>57;3511;3513</NoWarn>
2322
<OtherFlags>$(OtherFlags) --compiling-fslib --compiling-fslib-40 --maxerrors:100 --extraoptimizationloops:1</OtherFlags>
2423
<!-- preview needed for use of state machines for tasks -->
2524
<LangVersion>preview</LangVersion>
@@ -34,7 +33,8 @@
3433
<IsPackable>true</IsPackable>
3534
<PackageDescription>FSharp.Core redistributables from F# Tools version $(FSCorePackageVersion) For F# $(FSLanguageVersion). Contains code from the F# Software Foundation.</PackageDescription>
3635
<PackageReleaseNotes>/blob/main/release-notes.md#FSharp-Core-$(FSCoreReleaseNotesVersion)</PackageReleaseNotes>
37-
</PropertyGroup>
36+
37+
</PropertyGroup>
3838

3939
<ItemGroup>
4040
<EmbeddedResource Update="FSCore.resx">

tests/benchmarks/MicroPerf/MicroPerf.fsproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
<TargetFramework>net5.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
7-
<!-- Turn off "This function is for use by compiled F# code and should not be used directly" -->
8-
<OtherFlags>$(OtherFlags) --nowarn:1204</OtherFlags>
9-
<!-- Turn off "Experimental" -->
10-
<OtherFlags>$(OtherFlags) --nowarn:57</OtherFlags>
7+
<!-- Turn off "57: experimental" -->
8+
<!-- Turn off "1204: This function is for use by compiled F# code and should not be used directly" -->
9+
<NoWarn>57;1204</NoWarn>
1110
<OtherFlags>$(OtherFlags) --langversion:preview</OtherFlags>
1211
<OtherFlags>$(OtherFlags) --define:PREVIEW</OtherFlags>
1312

tests/benchmarks/TaskPerf/TaskPerf.fsproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
<TargetFramework>net5.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
7-
<!-- Turn off "This function is for use by compiled F# code and should not be used directly" -->
8-
<OtherFlags>$(OtherFlags) --nowarn:1204</OtherFlags>
9-
<!-- Turn off "Experimental" -->
10-
<OtherFlags>$(OtherFlags) --nowarn:57</OtherFlags>
7+
<!-- Turn off "57: experimental" -->
8+
<!-- Turn off "1204: This function is for use by compiled F# code and should not be used directly" -->
119
<!-- Turn off 3511: state machine not compilable - expected for inlined functions defining state machine generators -->
1210
<!-- Turn off 3513: resumable code invocation' - expected for resumable code combinators -->
13-
<OtherFlags>$(OtherFlags) --nowarn:3511 --nowarn:3513</OtherFlags>
11+
<NoWarn>57;1204;3511;3513</NoWarn>
1412
<OtherFlags>$(OtherFlags) --langversion:preview</OtherFlags>
1513
<OtherFlags>$(OtherFlags) --define:PREVIEW</OtherFlags>
1614
</PropertyGroup>

0 commit comments

Comments
 (0)