]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
gdb-add-index.sh: Remove use of non posix 'local'
authorLancelot SIX <lsix@lancelotsix.com>
Fri, 26 Mar 2021 16:46:57 +0000 (16:46 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 26 Mar 2021 23:42:33 +0000 (23:42 +0000)
commitefe1ecd834133e0b1947b410b018076a2a6dbe6c
tree90331d06482115e517129e4536140d56a3d56df6
parentf4655dee7749516dd9f4867a58e2910a7c9610c8
gdb-add-index.sh: Remove use of non posix 'local'

While working on gdb-add-index.sh, it appeared that it uses the non
POSIX 'local' keyword.  Instead of using local to allow variable
shadowing, I rename the local one to avoid name conflicts altogether.

This commit gets rid of the following shellcheck warning:

    In gdb-add-index.sh line 63:
        local file="$1"
        ^--------^ SC2039: In POSIX sh, 'local' is undefined.

gdb/ChangeLog:

* contrib/gdb-add-index.sh: Avoid variable shadowing and get
rid of 'local'.
gdb/ChangeLog
gdb/contrib/gdb-add-index.sh