X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fwarning.c;h=5d1bcabc64ee163c010562f56035266e348e0bfb;hb=bb971a1e8a25cf2316d1cf5da309eb77b4975f0f;hp=a9cbccb72e287bb3d9dd30bee76226835e5e692c;hpb=ac5288c1ac9b4d0721b3bc7271368c11c736248e;p=chaz%2Ftar diff --git a/src/warning.c b/src/warning.c index a9cbccb..5d1bcab 100644 --- a/src/warning.c +++ b/src/warning.c @@ -41,6 +41,7 @@ static char const *const warning_args[] = { "unknown-cast", "unknown-keyword", "xdev", + "decompress-program", NULL }; @@ -64,7 +65,8 @@ static int warning_types[] = { WARN_TIMESTAMP, WARN_UNKNOWN_CAST, WARN_UNKNOWN_KEYWORD, - WARN_XDEV + WARN_XDEV, + WARN_DECOMPRESS_PROGRAM }; ARGMATCH_VERIFY (warning_args, warning_types); @@ -76,7 +78,7 @@ set_warning_option (const char *arg) { int negate = 0; int option; - + if (strcmp (arg, "none") == 0) { warning_option = 0; @@ -88,11 +90,10 @@ set_warning_option (const char *arg) arg += 3; } - option = XARGMATCH ("--warning", arg, + option = XARGMATCH ("--warning", arg, warning_args, warning_types); if (negate) warning_option &= ~option; else warning_option |= option; } -