Re: [PATCH 2/2] tools: env: Avoid an uninited warning with was_locked

2020-08-05 Thread Tom Rini
On Sat, Aug 01, 2020 at 10:30:39AM -0600, Simon Glass wrote: > Set this variable to 0 to avoid a warning about an unused variable. This > happens on gcc 7.5.0 for me. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH 2/2] tools: env: Avoid an uninited warning with was_locked

2020-08-01 Thread Simon Glass
Set this variable to 0 to avoid a warning about an unused variable. This happens on gcc 7.5.0 for me. Signed-off-by: Simon Glass --- tools/env/fw_env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index ccbeb5552bc..66cb9d2a25e 1006