0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

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
%{$strucname}_size equ ($-%$strucname)
%pop
[warning push]
[warning -other]
__?SECT?__
[warning pop]
%endmacro
%imacro istruc 1.nolist