Files
swift-mirror/userdocs/diagnostics/unknown-warning-group.md
Ben Barham 32ec5a61b7 Add groupings for the various diagnostics
Also make the titles and one line summaries a little more consistent (at
least for diagnsotic groups and upcoming language features, haven't gone
through the educational notes).
2025-06-05 15:49:46 -07:00

573 B

Unknown warning group (UnknownWarningGroup)

Warnings for unrecognized warning groups specified in -Wwarning or -Werror.

Overview

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'