mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-30 08:03:59 +00:00
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:
parent
da1ffd0412
commit
d824983203
@ -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// /\\ }"
|
||||
|
Loading…
x
Reference in New Issue
Block a user