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()
This commit is contained in:
Nathan Moinvaziri 2022-07-02 13:59:19 -07:00 committed by Hans Kristian Rosbach
parent 1532af4d85
commit 370d08fc1f
2 changed files with 2 additions and 2 deletions

View 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;

View 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");