Re: [PATCH] bootflow: Rework do_bootflow_menu() slightly

2023-04-22 Thread Simon Glass
On Fri, 7 Apr 2023 at 02:03, Tom Rini wrote: > > When building this with clang, we get a warning such as: > cmd/bootflow.c:412:27: warning: variable 'bflow' is uninitialized when used > here [-Wuninitialized] > printf("Selected: %s\n", bflow->os_name ? bflow->os_name : > bflow->name); >

Re: [PATCH] bootflow: Rework do_bootflow_menu() slightly

2023-04-06 Thread Simon Glass
On Fri, 7 Apr 2023 at 02:03, Tom Rini wrote: > > When building this with clang, we get a warning such as: > cmd/bootflow.c:412:27: warning: variable 'bflow' is uninitialized when used > here [-Wuninitialized] > printf("Selected: %s\n", bflow->os_name ? bflow->os_name : > bflow->name); >

[PATCH] bootflow: Rework do_bootflow_menu() slightly

2023-04-06 Thread Tom Rini
When building this with clang, we get a warning such as: cmd/bootflow.c:412:27: warning: variable 'bflow' is uninitialized when used here [-Wuninitialized] printf("Selected: %s\n", bflow->os_name ? bflow->os_name : bflow->name); ^ And a suggestion to