Skip to content

Commit 1df2060

Browse files
committed
Specify the correct warning group for -Werror in SE-0458 proposal.
The warning group is `StrictMemorySafety`, rather than `Unsafe`.
1 parent e386454 commit 1df2060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/0458-strict-memory-safety.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ The strict memory safety mode can be enabled with the new compiler flag `-strict
510510
All of the memory-safety diagnostics produced by the strict memory safety mode will be warnings. These warnings be in the group `StrictMemorySafety` (possibly organized into subgroups) so that one can choose to escalate them to errors or keep them as warnings using the compiler flags introduced in [SE-0443](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0443-warning-control-flags.md). For example, one can choose to enable the mode and make memory-safety issues errors using:
511511

512512
```
513-
swiftc -strict-memory-safety -Werror Unsafe
513+
swiftc -strict-memory-safety -Werror StrictMemorySafety
514514
```
515515

516516
### SwiftPM integration

0 commit comments

Comments
 (0)