mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Since these different forms of documentation have a similar purpose, and there's already some infrastructure for educational notes, unify all of the diagnostics-related documentation in a single place. We might consider unifying these ideas in the compiler as well, but that's for another day.
16 lines
636 B
Markdown
16 lines
636 B
Markdown
# Unknown "Warning Group" Warnings (`UnknownWarningGroup`)
|
|
|
|
The `UnknownWarningGroup` diagnostic group addresses warnings related to the specification of unrecognized warning groups in compilation flags.
|
|
|
|
```sh
|
|
swiftc -Werror non_existing_group file.swift
|
|
<unknown>:0: warning: unknown warning group: 'non_existing_group'
|
|
```
|
|
|
|
Such warnings are emitted after the behavior for all specified warning groups has been processed, which means their behavior can also be specified. For example:
|
|
|
|
```sh
|
|
swiftc -Werror UnknownWarningGroup -Werror non_existing_group file.swift
|
|
<unknown>:0: error: unknown warning group: 'non_existing_group'
|
|
```
|