From 69886dfc01e1f3cb6e711df5ab8c4ba30313cb93 Mon Sep 17 00:00:00 2001 From: KO Myung-Hun Date: Mon, 25 Nov 2024 20:32:30 +0900 Subject: [PATCH] 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 --- macros/standard.mac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macros/standard.mac b/macros/standard.mac index 3d875e3b..7d9d5b33 100644 --- a/macros/standard.mac +++ b/macros/standard.mac @@ -89,7 +89,10 @@ STD: nasm %imacro endstruc 0.nolist %{$strucname}_size equ ($-%$strucname) %pop + [warning push] + [warning -other] __?SECT?__ + [warning pop] %endmacro %imacro istruc 1.nolist