[PATCH 1/1] tools: avoid implicit fallthrough in fdt_add_pubkey

Simon Glass sjg at chromium.org
Sun Apr 2 04:38:25 CEST 2023


On Sat, 1 Apr 2023 at 19:10, Heinrich Schuchardt <
heinrich.schuchardt at canonical.com> wrote:
>
> When building with -Wimplicit-fallthrough we get a warning
>
>     tools/fdt_add_pubkey.c:52:25: warning:
>     this statement may fall through [-Wimplicit-fallthrough=]
>        52 |                         print_help();
>           |
>
> Explicitly declare which functions don't return.
>
> Fixes: 30238e99619c ("tools: add fdt_add_pubkey")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  tools/fdt_add_pubkey.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list