]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed functions declared without a prototype warning in tools.
authorNathan Moinvaziri <nathan@nathanm.com>
Sat, 2 Jul 2022 20:59:19 +0000 (13:59 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 15 Aug 2022 14:48:31 +0000 (16:48 +0200)
  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()

tools/makecrct.c
tools/maketrees.c

index 8ed0cf5cfd85595acddd1738c59d1b6143507eb1..b5469b7d39c77ab089c47323f87c26d7116cb9f5 100644 (file)
@@ -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;
 
index 97688c7aae0ba64fe26a9748309a61ff5ce623a2..2c32ccae08e89f62f86af72d865aaf16f6566d29 100644 (file)
@@ -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");