]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
for the sake of testing: -Wnone
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 23 Aug 2012 18:52:39 +0000 (20:52 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 23 Aug 2012 18:52:39 +0000 (20:52 +0200)
main.c

diff --git a/main.c b/main.c
index 36b3349ea26e25d75cae2fe24ac50059f193373e..4b850d0c8614d1314fabb8792b1202027166aa00 100644 (file)
--- 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;