From 3f1cad18af2aeec3c6b470eb8a3dd0b53d8eb89a Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Thu, 23 Aug 2012 20:52:39 +0200 Subject: [PATCH] for the sake of testing: -Wnone --- main.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.2