---
title: WarningLevel
framework: packagedescription
role: symbol
role_heading: Enumeration
path: packagedescription/warninglevel
---

# WarningLevel

The level at which a compiler warning should be treated.

## Declaration

```swift
enum WarningLevel
```

## Overview

Overview This enum is used with the SwiftSetting.treatAllWarnings(as:_:) and SwiftSetting.treatWarning(name:as:_:) methods to control how warnings are handled during compilation.

## Topics

### Enumeration Cases

- [WarningLevel.error](packagedescription/warninglevel/error.md)
- [WarningLevel.warning](packagedescription/warninglevel/warning.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
