##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# Warning directive

From cppreference.com
< c‎ | preprocessor

Displays given message.

### [edit] Syntax

`#warning` warning_message |  |

### [edit] Explanation

After encountering `#warning` directive, diagnostic message warning_message is shown.

warning_message can consist of several words.

### [edit] See also

- error directive

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/preprocessor/warning&oldid=61454"