mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
util/cutils: Clean up global variable shadowing in get_relocated_path()
Fix:
util/cutils.c:1147:17: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
const char *exec_dir = qemu_get_exec_dir();
^
util/cutils.c:1035:20: note: previous declaration is here
static const char *exec_dir;
^
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231004120019.93101-12-philmd@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
21eb752ff5
commit
5bebe03f51
1 changed files with 0 additions and 1 deletions
|
|
@ -1144,7 +1144,6 @@ char *get_relocated_path(const char *dir)
|
|||
{
|
||||
size_t prefix_len = strlen(CONFIG_PREFIX);
|
||||
const char *bindir = CONFIG_BINDIR;
|
||||
const char *exec_dir = qemu_get_exec_dir();
|
||||
GString *result;
|
||||
int len_dir, len_bindir;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue