From: Wolfgang (Blub) Bumiller Date: Wed, 8 Aug 2012 10:43:02 +0000 (+0200) Subject: fix the chack for -Wno- and -fno-, it needs to use NO_ instead of no- X-Git-Tag: 0.1-rc1~359^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8dccf69060478c5665052dddaa6845d9e5d34f6c;p=xonotic%2Fgmqcc.git fix the chack for -Wno- and -fno-, it needs to use NO_ instead of no- --- diff --git a/main.c b/main.c index 7ca9fea..6b751e3 100644 --- a/main.c +++ b/main.c @@ -202,7 +202,7 @@ static bool options_parse(int argc, char **argv) { } exit(0); } - else if (!strncmp(argv[0]+2, "NO-", 3)) { + else if (!strncmp(argv[0]+2, "NO_", 3)) { if (!options_setflag(argv[0]+5, false)) { printf("unknown flag: %s\n", argv[0]+2); return false; @@ -223,12 +223,12 @@ static bool options_parse(int argc, char **argv) { } exit(0); } - else if (!strcmp(argv[0]+2, "all")) { + else if (!strcmp(argv[0]+2, "ALL")) { for (itr = 0; itr < sizeof(opts_warn)/sizeof(opts_warn[0]); ++itr) opts_warn[itr] = 0xFFFFFFFFL; break; } - if (!strncmp(argv[0]+2, "no-", 3)) { + if (!strncmp(argv[0]+2, "NO_", 3)) { if (!options_setwarn(argv[0]+5, false)) { printf("unknown warning: %s\n", argv[0]+2); return false;