]> 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>
Fri, 17 Mar 2023 20:27:56 +0000 (21:27 +0100)
  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/maketrees.c

index 337f2fc070dd704ebf47f50caa7cf7773a56d3f1..01e7b4d8c41f1bc127eb70704623f58aade3f374 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");