mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Frontend] Don't enable EmbeddedRestrictions warnings under -suppress-warnings
Fixes #84697.
This commit is contained in:
@@ -2646,7 +2646,7 @@ static bool ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args,
|
||||
|
||||
// If the "embedded" flag was provided, enable the EmbeddedRestrictions
|
||||
// warning group. This group is opt-in in non-Embedded builds.
|
||||
if (isEmbedded(Args)) {
|
||||
if (isEmbedded(Args) && !Args.hasArg(OPT_suppress_warnings)) {
|
||||
Opts.WarningsAsErrorsRules.push_back(
|
||||
WarningAsErrorRule(WarningAsErrorRule::Action::Disable,
|
||||
"EmbeddedRestrictions"));
|
||||
|
||||
Reference in New Issue
Block a user