Re: [PATCH 2/4] uboot_env: Remove unused variable declaration

4 views
Skip to first unread message

Stefano Babic

unread,
Sep 19, 2025, 12:25:09 PM (12 days ago) Sep 19
to Alexander Dahl, swup...@googlegroups.com


On 9/19/25 08:42, Alexander Dahl wrote:
> gcc warned about this:
>
> [ 8%] Building C object src/CMakeFiles/ubootenv.dir/uboot_env.c.o
> .../src/uboot_env.c: In function 'libuboot_set_env':
> .../src/uboot_env.c:944:27: warning: unused variable 'entry' [-Wunused-variable]
>
> Signed-off-by: Alexander Dahl <a...@thorsis.com>
> ---
> src/uboot_env.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/uboot_env.c b/src/uboot_env.c
> index 9641800..96d23bf 100644
> --- a/src/uboot_env.c
> +++ b/src/uboot_env.c
> @@ -941,7 +941,7 @@ int libuboot_read_config(struct uboot_ctx *ctx, const char *config)
>
> int libuboot_set_env(struct uboot_ctx *ctx, const char *varname, const char *value)
> {
> - struct var_entry *entry, *entryvarlist = NULL;
> + struct var_entry *entryvarlist = NULL;
> if (strchr(varname, '='))
> return -EINVAL;
>

Reviewed-by: Stefano Babic <stefan...@swupdate.org>
Reply all
Reply to author
Forward
0 new messages