]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xzless: Rename unused variables to silence static analysers.
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 27 Jul 2018 15:10:44 +0000 (18:10 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 27 Jul 2018 15:10:44 +0000 (18:10 +0300)
In this particular case I don't see this affecting readability
of the code.

Thanks to Pavel Raiskup.

src/scripts/xzless.in

index 288dd871e4c48b3f098d9ba066af767c5e697c84..1b85ad6f36033ce8ef31b9115c24f76113e75c64 100644 (file)
@@ -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"