Disable other warnings in endstruc

endstruc calls __?SECT?__ and this causes unnecessary warnings on obj
output if a section is defined with any attributes, because obj output
does not like a segment definition with any attributes when it appears
again.

Signed-off-by: KO Myung-Hun <komh78@gmail.com>
This commit is contained in:
KO Myung-Hun 2024-11-25 20:32:30 +09:00 committed by H. Peter Anvin
parent bc2108b940
commit 1d72743d6b

View file

@ -59,7 +59,10 @@ STD: nasm
%imacro endstruc 0.nolist %imacro endstruc 0.nolist
%{$strucname}_size equ ($-%$strucname) %{$strucname}_size equ ($-%$strucname)
%pop %pop
[warning push]
[warning -other]
__?SECT?__ __?SECT?__
[warning pop]
%endmacro %endmacro
%imacro istruc 1.nolist %imacro istruc 1.nolist