Mercurial > hg > index.cgi
diff lwasm/pseudo.c @ 559:ddc7b05a5675
Add --no-warn=ifp1 flag to suppress warnings about ifp1 and ipf2
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 21 Sep 2023 13:13:23 -0600 |
parents | e10618b48e68 |
children | a6a9d46f071f |
line wrap: on
line diff
--- a/lwasm/pseudo.c Fri Sep 08 00:35:43 2023 -0600 +++ b/lwasm/pseudo.c Thu Sep 21 13:13:23 2023 -0600 @@ -1111,7 +1111,8 @@ return; } - lwasm_register_error2(as, l, W_NOT_SUPPORTED, "%s", "IFP1"); + if ((as -> nowarn_flags & NOWARN_IFP1) == 0) + lwasm_register_error2(as, l, W_NOT_SUPPORTED, "%s", "IFP1"); } PARSEFUNC(pseudo_parse_ifp2) @@ -1127,7 +1128,8 @@ return; } - lwasm_register_error2(as, l, W_NOT_SUPPORTED, "%s", "IFP2"); + if ((as -> nowarn_flags & NOWARN_IFP1) == 0) + lwasm_register_error2(as, l, W_NOT_SUPPORTED, "%s", "IFP2"); } PARSEFUNC(pseudo_parse_ifeq)