diff options
author | Joel Holdsworth <jholdsworth@nvidia.com> | 2022-02-24 16:27:15 +0000 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2022-05-11 20:25:42 +1200 |
commit | d8249832033d63756c902b50594084df58d73c65 (patch) | |
tree | b0eb88ffefe34b3492acdc76a218e869b7909fc0 /scripts | |
parent | da1ffd041276ad87787be0c5cbcd7841082e3619 (diff) | |
download | crosstool-ng-d8249832033d63756c902b50594084df58d73c65.tar.gz crosstool-ng-d8249832033d63756c902b50594084df58d73c65.tar.bz2 crosstool-ng-d8249832033d63756c902b50594084df58d73c65.zip |
cc/gcc: Declare "file" and "ext" variables local
In do_gcc_core_backend and do_gcc_backend, variables "file" and "ext"
are used to store intermediate values. Previously, these were not
declared local. This patch corrects this issue.
Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/cc/gcc.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 59666160..7002ddd8 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -262,6 +262,8 @@ do_gcc_core_backend() { local -a core_targets_install local -a extra_user_config local arg + local file + local ext for arg in "$@"; do eval "${arg// /\\ }" @@ -901,6 +903,8 @@ do_gcc_backend() { local -a final_LDFLAGS local tmp local arg + local file + local ext for arg in "$@"; do eval "${arg// /\\ }" |