aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-02-27 17:08:36 -0500
committerTom Rini <trini@konsulko.com>2023-03-22 15:22:48 -0400
commit99de38a1092b584da438970a3b636cc3178b3637 (patch)
tree347f68e279212f84f98743e5c99fdb7b5bd379df
parentfbfcb614e05890d30264c2b965fd28bfd4d8ed27 (diff)
downloadu-boot-99de38a1092b584da438970a3b636cc3178b3637.zip
u-boot-99de38a1092b584da438970a3b636cc3178b3637.tar.gz
u-boot-99de38a1092b584da438970a3b636cc3178b3637.tar.bz2
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 <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--lib/zlib/trees.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zlib/trees.c b/lib/zlib/trees.c
index 970bc5d..e040617 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;