Skip to content

Commit dc65ff3

Browse files
committed
[intro.defs] Define "warning"
1 parent 955800d commit dc65ff3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/intro.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,18 @@
694694
\tcode{false}.
695695
\end{example}
696696

697+
\indexdefn{warning}%
698+
\definition{warning}{defns.warning}
699+
message belonging to a subset of
700+
\termref{defns.diagnostic}{diagnostic message}{s}
701+
produced to provide the user with information about the program,
702+
not as a consequence of a \Cpp{} program being rejected
703+
704+
\begin{example}
705+
The \tcode{#warning} directive produces a warning.
706+
The \tcode{#error} directive produces a diagnostic message that is not a warning\iref{cpp.error}.
707+
\end{example}
708+
697709
\indexdefn{program!well-formed}%
698710
\definition{well-formed program}{defns.well.formed}
699711
\Cpp{} program constructed according to the syntax and semantic rules

0 commit comments

Comments
 (0)