Skip to content

Commit

Permalink
Merge pull request #456 from Wuerfel21/W21-warn-on-unrecognized-optflag
Browse files Browse the repository at this point in the history
Change unrecognized optimization flag to warning
  • Loading branch information
totalspectrum authored Nov 21, 2024
2 parents 9858889 + c83004f commit 432f273
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,7 @@ int ParseOptimizeString(AST *line, const char *str, int *flag_ptr)
}
}
if (!bits) {
ERROR(line, "Unrecognized optimization flag: %s", buf);
return 0;
WARNING(line, "Unrecognized optimization flag: %s", buf);
}
if (notflag) {
flags &= ~bits;
Expand Down

0 comments on commit 432f273

Please sign in to comment.