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>
This commit is contained in:
Joel Holdsworth 2022-02-24 16:27:15 +00:00 committed by Chris Packham
parent da1ffd0412
commit d824983203

View File

@ -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// /\\ }"