mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
clean: use f(void) instead of f() to declare a pointer to a function 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 <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
9f93e4611f
commit
8687f7776d
@ -66,7 +66,7 @@ struct menu_item {
|
||||
char hotkey;
|
||||
const char *title;
|
||||
int selected;
|
||||
int (*fn)();
|
||||
int (*fn)(void);
|
||||
};
|
||||
|
||||
enum menu_stuff_type {
|
||||
|
Loading…
Reference in New Issue
Block a user