aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-10-03 23:47:08 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-10-03 23:47:08 -0700
commitbef71a86b949009f8fd2d194b1d9f1ce1595ffb4 (patch)
treef83ae0d36e7eb54592a888e57fd07666dc6942dd /asm
parent7ad824be7a64fd9421e340b770773ca50005a031 (diff)
downloadnasm-bef71a86b949009f8fd2d194b1d9f1ce1595ffb4.tar.gz
nasm-bef71a86b949009f8fd2d194b1d9f1ce1595ffb4.tar.xz
nasm-bef71a86b949009f8fd2d194b1d9f1ce1595ffb4.zip
warnings: do a line break before enabled/disabled note
We need to create a separate paragraph if the help text had used \c anyway. Putting the enabled/disabled separately for all entries makes it read a lot cleaner anyway. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'asm')
-rw-r--r--asm/parser.c1
-rwxr-xr-xasm/warnings.pl2
2 files changed, 1 insertions, 2 deletions
diff --git a/asm/parser.c b/asm/parser.c
index ba5081ac..15cfcdfa 100644
--- a/asm/parser.c
+++ b/asm/parser.c
@@ -1172,7 +1172,6 @@ is_expression:
*! \c KMOV WORD K0,[foo] ; Permitted, WORD K0 specifies instruction size
*! \c KMOV K0,WORD [foo] ; Permitted, WORD [foo] specifies instruction size
*! \c KMOV K0,[foo] ; Not permitted, instruction size ambiguous
- *!-
*/
nasm_warn(WARN_REGSIZE, "invalid register size specification ignored");
}
diff --git a/asm/warnings.pl b/asm/warnings.pl
index 7987ab4c..1393fd9b 100755
--- a/asm/warnings.pl
+++ b/asm/warnings.pl
@@ -255,7 +255,7 @@ if ($what eq 'c') {
@doc = @{$warn->{doc}};
if (defined($docdef)) {
- push(@doc, "$docdef by default.\n");
+ push(@doc, "\n", "\\> $docdef by default.\n");
}
}