Skip to content

Commit

Permalink
Add ignorewarn pragma to pawn compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ArKaNeMaN committed Aug 24, 2024
1 parent 27f451a commit ca65b50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/libpc300/sc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ca65b50

Please sign in to comment.