From d8249832033d63756c902b50594084df58d73c65 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Thu, 24 Feb 2022 16:27:15 +0000 Subject: 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 --- scripts/build/cc/gcc.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') 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// /\\ }" -- cgit v1.2.3