From ca65b50921bcd22810f67b7d326b0d96fcf9ef0a Mon Sep 17 00:00:00 2001 From: ArKaNeMaN Date: Sat, 24 Aug 2024 16:03:47 +0300 Subject: [PATCH] Add `ignorewarn` pragma to pawn compiler --- compiler/libpc300/sc2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/libpc300/sc2.c b/compiler/libpc300/sc2.c index 038d8e2105..3514a0b835 100755 --- a/compiler/libpc300/sc2.c +++ b/compiler/libpc300/sc2.c @@ -1158,6 +1158,12 @@ static int command(void) preproc_expr(&val,NULL); if (val>0) sc_tabsize=(int)val; + + } else if (strcmp(str, "ignorewarn") == 0) { + cell val; + preproc_expr(&val, NULL); + pc_enablewarning(val, 0); + } else if (strcmp(str,"align")==0) { sc_alignnext=TRUE; } else if (strcmp(str,"unused")==0) {