Files
swift-mirror/userdocs/diagnostics/unknown-warning-group.md
Doug Gregor f45271f569 Move diagnostic group documentation in with educational notes
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.
2025-02-27 21:19:02 -08:00

636 B

Unknown "Warning Group" Warnings (UnknownWarningGroup)

The UnknownWarningGroup diagnostic group addresses warnings related to the specification of unrecognized warning groups in compilation flags.

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:

swiftc -Werror UnknownWarningGroup -Werror non_existing_group file.swift
<unknown>:0: error: unknown warning group: 'non_existing_group'