]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zlib: trees.c: Fix a warning with clang-15
authorTom Rini <trini@konsulko.com>
Mon, 27 Feb 2023 22:08:36 +0000 (17:08 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 22 Mar 2023 19:22:48 +0000 (15:22 -0400)
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>
lib/zlib/trees.c

index 970bc5dbc64e2caefcae4ad4adc2d370381b71a9..e040617686a1d1877ce5be0c67827edc069f1706 100644 (file)
@@ -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;