From bef71a86b949009f8fd2d194b1d9f1ce1595ffb4 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 3 Oct 2019 23:47:08 -0700 Subject: [PATCH] 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 --- asm/parser.c | 1 - asm/warnings.pl | 2 +- 2 files changed, 1 insertion(+), 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"); } }