Skip to content

Commit 1d72743

Browse files
komhhpax
authored andcommitted
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>
1 parent bc2108b commit 1d72743

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

macros/standard.mac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ STD: nasm
5959
%imacro endstruc 0.nolist
6060
%{$strucname}_size equ ($-%$strucname)
6161
%pop
62+
[warning push]
63+
[warning -other]
6264
__?SECT?__
65+
[warning pop]
6366
%endmacro
6467

6568
%imacro istruc 1.nolist

0 commit comments

Comments
 (0)