Contents

warning(_:)

Produces the given warning message during compilation.

Declaration

@freestanding(declaration) macro warning(_ message: String)

Parameters

  • warning:

    The diagnostic message.

Overview

Compilation proceeds after emitting the message as a nonfatal warning.

See Also

Generating Compile-Time Diagnostics