# #warn directive

Source: https://ref.dm-lang.org/DM/preprocessor/warn

### Format
> `#warn Text`

### Args
> Text: a warning message to display

The #warn directive displays the specified message as a warning, but does not prevent the project from compiling.

```dm
#ifdef USE_LIGHTING
#warn The lighting feature in MyLibrary is experimental.
#endif
```

### See also
- [preprocessor](https://ref.dm-lang.org/DM/preprocessor/index.md)
- [#error directive](https://ref.dm-lang.org/DM/preprocessor/error.md)
