diff --git a/src/bitbuffer.c b/src/bitbuffer.c index 60cab6b72..428fb228d 100644 --- a/src/bitbuffer.c +++ b/src/bitbuffer.c @@ -414,7 +414,7 @@ int bitbuffer_find_repeated_row(bitbuffer_t *bits, unsigned min_repeats, unsigne // Unit testing #ifdef _TEST #include -int main(int argc, char **argv) +int main(void) { fprintf(stderr, "bitbuffer:: test\n"); diff --git a/src/fileformat.c b/src/fileformat.c index b566403f7..58c9f7b8a 100644 --- a/src/fileformat.c +++ b/src/fileformat.c @@ -290,7 +290,7 @@ void assert_str_equal(char const *a, char const *b) } } -int main(int argc, char **argv) +int main(void) { fprintf(stderr, "Testing:\n"); diff --git a/src/optparse.c b/src/optparse.c index 96a5fbcc0..10ff81cd0 100644 --- a/src/optparse.c +++ b/src/optparse.c @@ -338,7 +338,7 @@ char *remove_ws(char *str) } \ } while (0) -int main(int argc, char **argv) +int main(void) { unsigned passed = 0; unsigned failed = 0; diff --git a/src/util.c b/src/util.c index 116c21d2f..e12b133dc 100644 --- a/src/util.c +++ b/src/util.c @@ -361,7 +361,7 @@ int add_nibbles(uint8_t const message[], unsigned num_bytes) } \ } while (0) -int main(int argc, char **argv) { +int main(void) { unsigned passed = 0; unsigned failed = 0;