Skip to content

Commit

Permalink
clean: use f(void) instead of f() to declare a pointer to a function …
Browse files Browse the repository at this point in the history
…without arguments

Explicitly state that menu_item functions like clean_cmd don't take
any arguments by using void instead of an empty parameter list.

Found using gcc -Wstrict-prototypes.

Signed-off-by: Rene Scharfe <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
rscharfe authored and gitster committed Aug 18, 2014
1 parent 9f93e46 commit 8687f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/clean.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct menu_item {
char hotkey;
const char *title;
int selected;
int (*fn)();
int (*fn)(void);
};

enum menu_stuff_type {
Expand Down

0 comments on commit 8687f77

Please sign in to comment.