From: Wolfgang (Blub) Bumiller Date: Thu, 23 Aug 2012 18:52:39 +0000 (+0200) Subject: for the sake of testing: -Wnone X-Git-Tag: 0.1-rc1~60 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3f1cad18af2aeec3c6b470eb8a3dd0b53d8eb89a;p=xonotic%2Fgmqcc.git for the sake of testing: -Wnone --- diff --git a/main.c b/main.c index 36b3349..4b850d0 100644 --- a/main.c +++ b/main.c @@ -253,6 +253,11 @@ static bool options_parse(int argc, char **argv) { opts_werror = true; break; } + else if (!strcmp(argv[0]+2, "NONE")) { + for (itr = 0; itr < sizeof(opts_warn)/sizeof(opts_warn[0]); ++itr) + opts_warn[itr] = 0; + break; + } else if (!strcmp(argv[0]+2, "ALL")) { for (itr = 0; itr < sizeof(opts_warn)/sizeof(opts_warn[0]); ++itr) opts_warn[itr] = 0xFFFFFFFFL;