diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-04 14:00:14 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-10-06 13:27:48 +0200 |
commit | 5bebe03f51991ad92ae1220111eda5c7a0e70289 (patch) | |
tree | 94780262143c29e50e513678b40dea327495c3ba /util | |
parent | 21eb752ff53bed33594766d1dccd66efcf4f54ab (diff) | |
download | qemu-5bebe03f51991ad92ae1220111eda5c7a0e70289.zip qemu-5bebe03f51991ad92ae1220111eda5c7a0e70289.tar.gz qemu-5bebe03f51991ad92ae1220111eda5c7a0e70289.tar.bz2 |
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>
Diffstat (limited to 'util')
-rw-r--r-- | util/cutils.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/util/cutils.c b/util/cutils.c index 2537319..b44718a 100644 --- a/util/cutils.c +++ b/util/cutils.c @@ -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; |