aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2019-01-11 13:13:03 -0800
committerH. Peter Anvin (Intel) <hpa@zytor.com>2019-01-11 13:13:03 -0800
commit1df7263ae937ac11abb2c6938b8891745af91ce6 (patch)
treee2f0e201f2dbfc7f036ff701e61027c02f1391f0 /doc
parent38ddb19977c109ae18d69699d177c7d34c9d0455 (diff)
downloadnasm-1df7263ae937ac11abb2c6938b8891745af91ce6.tar.gz
nasm-1df7263ae937ac11abb2c6938b8891745af91ce6.tar.xz
nasm-1df7263ae937ac11abb2c6938b8891745af91ce6.zip
warnings: add [warning push] and [warning pop]
Add [warning push] and [warning pop] directives. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/changes.src6
-rw-r--r--doc/nasmdoc.src4
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/changes.src b/doc/changes.src
index a4df0473..ad539676 100644
--- a/doc/changes.src
+++ b/doc/changes.src
@@ -7,6 +7,12 @@
The NASM 2 series supports x86-64, and is the production version of NASM
since 2007.
+\S{cl-2.15} Version 2.15
+
+\b The state of warnings can now be saved and restored via the
+\c{[WARNING PUSH]} and \c{[WARNING POP]} directives. See
+\k{asmdir-warning}.
+
\S{cl-2.14.03} Version 2.14.03
\b Suppress nuisance "\c{label changed during code generation}" messages
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index 5ce113a2..a8559d46 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -4776,6 +4776,10 @@ more details about warning classes.
the original value, either the default value or as specified on the
command line.
+\b \c{[warning push]} saves the current warning state on a stack.
+
+\b \c{[warning pop]} restores the current warning state from the stack.
+
The \c{[WARNING]} directive also accepts the \c{all}, \c{error} and
\c{error=}\e{warning-class} specifiers.