comparison 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
comparison
equal deleted inserted replaced
558:7fb2047ccdee 559:ddc7b05a5675
1109 as -> skipcount++; 1109 as -> skipcount++;
1110 skip_operand(p); 1110 skip_operand(p);
1111 return; 1111 return;
1112 } 1112 }
1113 1113
1114 lwasm_register_error2(as, l, W_NOT_SUPPORTED, "%s", "IFP1"); 1114 if ((as -> nowarn_flags & NOWARN_IFP1) == 0)
1115 lwasm_register_error2(as, l, W_NOT_SUPPORTED, "%s", "IFP1");
1115 } 1116 }
1116 1117
1117 PARSEFUNC(pseudo_parse_ifp2) 1118 PARSEFUNC(pseudo_parse_ifp2)
1118 { 1119 {
1119 l -> len = 0; 1120 l -> len = 0;
1125 as -> skipcount++; 1126 as -> skipcount++;
1126 skip_operand(p); 1127 skip_operand(p);
1127 return; 1128 return;
1128 } 1129 }
1129 1130
1130 lwasm_register_error2(as, l, W_NOT_SUPPORTED, "%s", "IFP2"); 1131 if ((as -> nowarn_flags & NOWARN_IFP1) == 0)
1132 lwasm_register_error2(as, l, W_NOT_SUPPORTED, "%s", "IFP2");
1131 } 1133 }
1132 1134
1133 PARSEFUNC(pseudo_parse_ifeq) 1135 PARSEFUNC(pseudo_parse_ifeq)
1134 { 1136 {
1135 lw_expr_t e; 1137 lw_expr_t e;