From: Karel Zak Date: Thu, 19 May 2022 07:48:18 +0000 (+0200) Subject: pipesz: fix dead code [coverity scan] X-Git-Tag: v2.39-rc1~654 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=634446308fd590b830040a1a5ed6f42ebcea2fc5;p=thirdparty%2Futil-linux.git pipesz: fix dead code [coverity scan] 309 if (!opt_quiet && n_opt_size > 1) >>> CID 378501: Control flow issues (DEADCODE) >>> Execution cannot reach this statement: "warnx(dcgettext(NULL, "usin...". 310 warnx(_("using last specified size")); Signed-off-by: Karel Zak --- diff --git a/misc-utils/pipesz.c b/misc-utils/pipesz.c index db5ab34959..f586acb87a 100644 --- a/misc-utils/pipesz.c +++ b/misc-utils/pipesz.c @@ -272,6 +272,7 @@ int main(int argc, char **argv) case 's': sz = strtosize_or_err(optarg, _("invalid size argument")); opt_size = sz >= INT_MAX ? INT_MAX : (int)sz; + ++n_opt_size; break; case 'v': opt_verbose = TRUE;