[PATCH 3/4] cmd: zip: fix implicit declaration warning

Simon Glass sjg at chromium.org
Sat May 23 01:13:07 CEST 2020


On Fri, 22 May 2020 at 06:07, Michael Walle <michael at walle.cc> wrote:
>
> Fix the following warning:
>
> cmd/zip.c: In function ‘do_zip’:
> cmd/zip.c:30:6: warning: implicit declaration of function ‘gzip’; did you mean ‘do_zip’? [-Wimplicit-function-declaration]
>   if (gzip((void *) dst, &dst_len, (void *) src, src_len) != 0)
>       ^~~~
>       do_zip
>
> Include gzip.h header which declares the gzip() function.
>
> Signed-off-by: Michael Walle <michael at walle.cc>
> ---
>  cmd/zip.c | 1 +
>  1 file changed, 1 insertion(+)

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


More information about the U-Boot mailing list