Skip to content

Commit

Permalink
cosmetics: remove arguments from main where they're unused
Browse files Browse the repository at this point in the history
This prevents warnings about unused parameters (they're disabled by
default though, so they're not very visible).
  • Loading branch information
Mindavi committed Aug 5, 2020
1 parent fcd3533 commit 19f6f89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bitbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ int bitbuffer_find_repeated_row(bitbuffer_t *bits, unsigned min_repeats, unsigne
// Unit testing
#ifdef _TEST
#include <assert.h>
int main(int argc, char **argv)
int main(void)
{
fprintf(stderr, "bitbuffer:: test\n");

Expand Down
2 changes: 1 addition & 1 deletion src/fileformat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
2 changes: 1 addition & 1 deletion src/optparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 19f6f89

Please sign in to comment.