summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2022-07-02 13:59:19 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2022-08-15 16:48:31 +0200
commit370d08fc1f8421322e6aadcc29ce81efe3854d3d (patch)
tree0defaaf9efaf28993602c13b31829a13fc5c2bfd
parent1532af4d85734563d5cd3b276df808fd67b88489 (diff)
downloadProject-Tick-370d08fc1f8421322e6aadcc29ce81efe3854d3d.tar.gz
Project-Tick-370d08fc1f8421322e6aadcc29ce81efe3854d3d.zip
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()
-rw-r--r--tools/makecrct.c2
-rw-r--r--tools/maketrees.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/makecrct.c b/tools/makecrct.c
index 8ed0cf5cfd..b5469b7d39 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 97688c7aae..2c32ccae08 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");