Skip to content

Commit beabb3c

Browse files
author
H. Peter Anvin
committed
warnings.pl: add back formatting for group alias lists
Add back proper formatting for the list of warnings represented by a group alias. Signed-off-by: H. Peter Anvin <[email protected]>
1 parent f7163e3 commit beabb3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asm/warnings.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ sub sort_warnings {
244244
"prefixed by \\c{$pfx-}; currently\n");
245245
# Just commas is bad grammar to be sure, but it is more
246246
# legible than the alternative.
247-
push(@doc, join(scalar(@plist) < 3 ? ' and ' : ',', @plist).".\n");
247+
push(@doc, join(scalar(@plist) < 3 ? ' and ' : ', ',
248+
map { "\\c{$_}" } @plist).".\n");
248249
} elsif ($pfx ne $warn->{name}) {
249250
my $awarn = $aliases{$warn->{name}};
250251
@doc = ($awarn->{help}."\n\n",

0 commit comments

Comments
 (0)