From: Michael Walle Date: Fri, 22 May 2020 12:07:37 +0000 (+0200) Subject: cmd: zip: fix implicit declaration warning X-Git-Tag: v2020.07-rc3~2^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2843444a6eaf1bf287aa00ad46ccfac54fac26b0;p=oweals%2Fu-boot.git cmd: zip: fix implicit declaration warning 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 Reviewed-by: Simon Glass --- diff --git a/cmd/zip.c b/cmd/zip.c index b433f1889f..8ad3768464 100644 --- a/cmd/zip.c +++ b/cmd/zip.c @@ -7,6 +7,7 @@ #include #include #include +#include static int do_zip(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) {