diff lwasm/main.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
line wrap: on
line diff
--- a/lwasm/main.c	Fri Sep 08 00:35:43 2023 -0600
+++ b/lwasm/main.c	Thu Sep 21 13:13:23 2023 -0600
@@ -68,6 +68,7 @@
 	{ "unicorns",	0x142,	0,			0,							"Add sooper sekrit sauce"},
 	{ "6800compat",	0x200,	0,			0,							"Enable 6800 compatibility instructions, equivalent to --pragma=6800compat" },
 	{ "no-output",  0x105,  0,          0,                          "Inhibit creation of output file" },
+	{ "no-warn",    0x109,  "FLAG",     0,                          "Suppress warnings of the specified type" },
 	{ 0 }
 };
 
@@ -261,6 +262,11 @@
 		as -> preprocess = 1;
 		break;
 	
+	case 0x109:
+		if (!strcasecmp(arg, "ifp1") || !strcasecmp(arg, "ifp2"))
+			as -> nowarn_flags |= NOWARN_IFP1;
+		break;
+
 	case 0x200:
 		as -> pragmas |= PRAGMA_6800COMPAT;
 		break;