The #warning Conditional Directive

The #warning compiler directive is used in conjunction with other conditional compilation directives to produce compile-time warning messages. The compiler warning messages include an argument string supplied by the developer. These directives are most useful for detecting programmer inconsistencies and violation of constraints during preprocessing. The following example demonstrates warning processing during preprocessing:

#if !TRACING
    #warning This stuff wonÆt work yet û duck!
#endif 

Note that this warning is treated as any other warning; compilation of the source file will continue or terminate according to the same semantics.

Syntax

#warning <message>