Contents

disableWarning(_:_:)

Disable a specific C compiler warning group.

Declaration

static func disableWarning(_ name: String, _ condition: BuildSettingCondition? = nil) -> CSetting

Parameters

  • name:

    The name of the warning group to disable.

  • condition:

    A condition that restricts the application of the build setting.

Discussion

Use this setting to disable a specific warning group. This is equivalent to passing -Wno- followed by the group name to the C compiler.