From 1df7263ae937ac11abb2c6938b8891745af91ce6 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Fri, 11 Jan 2019 13:13:03 -0800 Subject: warnings: add [warning push] and [warning pop] Add [warning push] and [warning pop] directives. Signed-off-by: H. Peter Anvin (Intel) --- doc/changes.src | 6 ++++++ doc/nasmdoc.src | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'doc') 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. -- cgit v1.2.1