From: Lasse Collin Date: Fri, 27 Jul 2018 15:10:44 +0000 (+0300) Subject: xzless: Rename unused variables to silence static analysers. X-Git-Tag: v5.3.2alpha~163 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f76f7516d6a1c832f61810c82e92d151cc80966c;p=thirdparty%2Fxz.git xzless: Rename unused variables to silence static analysers. In this particular case I don't see this affecting readability of the code. Thanks to Pavel Raiskup. --- diff --git a/src/scripts/xzless.in b/src/scripts/xzless.in index 288dd871..1b85ad6f 100644 --- a/src/scripts/xzless.in +++ b/src/scripts/xzless.in @@ -46,7 +46,7 @@ if test "${LESSMETACHARS+set}" != set; then LESSMETACHARS="$space$tab$nl'"';*?"()<>[|&^`#\$%=~' fi -if test "$(less -V | { read less ver re && echo ${ver}; })" -ge 429; then +if test "$(less -V | { read _ ver _ && echo ${ver}; })" -ge 429; then # less 429 or later: LESSOPEN pipe will be used on # standard input if $LESSOPEN begins with |-. LESSOPEN="|-$xz -cdfq -- %s"