From: Tom Rini Date: Mon, 27 Feb 2023 22:08:36 +0000 (-0500) Subject: zlib: trees.c: Fix a warning with clang-15 X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~175^2~25^2~6 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=07ab51b8a44e142b169730e593a788f1bd931f14;p=uboot.git zlib: trees.c: Fix a warning with clang-15 With clang-15 we now will get warnings such as: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] And it is easy enough to address this warning here, even if we would like to stay in sync more with upstream as it's a single location. Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- diff --git a/lib/zlib/trees.c b/lib/zlib/trees.c index 970bc5dbc6..e040617686 100644 --- a/lib/zlib/trees.c +++ b/lib/zlib/trees.c @@ -237,7 +237,7 @@ local void send_bits(s, value, length) /* =========================================================================== * Initialize the various 'constant' tables. */ -local void tr_static_init() +local void tr_static_init(void) { #if defined(GEN_TREES_H) || !defined(STDC) static int static_init_done = 0;