From: Nathan Moinvaziri Date: Sat, 2 Jul 2022 20:59:19 +0000 (-0700) Subject: Fixed functions declared without a prototype warning in tools. X-Git-Tag: 2.1.0-beta1~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=370d08fc1f8421322e6aadcc29ce81efe3854d3d;p=thirdparty%2Fzlib-ng.git Fixed functions declared without a prototype warning in tools. tools/maketrees.c:101:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static void gen_trees_header() tools/makecrct.c:65:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static void make_crc_table() --- diff --git a/tools/makecrct.c b/tools/makecrct.c index 8ed0cf5cf..b5469b7d3 100644 --- a/tools/makecrct.c +++ b/tools/makecrct.c @@ -62,7 +62,7 @@ static void write_table64(const z_word_t *table, int k); information needed to generate CRCs on data a byte at a time for all combinations of CRC register values and incoming bytes. */ -static void make_crc_table() { +static void make_crc_table(void) { unsigned i, j, n; uint32_t p; diff --git a/tools/maketrees.c b/tools/maketrees.c index 97688c7aa..2c32ccae0 100644 --- a/tools/maketrees.c +++ b/tools/maketrees.c @@ -98,7 +98,7 @@ static void tr_static_init(void) { ((i) == (last)? "\n};\n\n" : \ ((i) % (width) == (width)-1 ? ",\n" : ", ")) -static void gen_trees_header() { +static void gen_trees_header(void) { int i; printf("#ifndef TREES_TBL_H_\n");