Skip to content

Commit 8687f77

Browse files
rscharfegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9f93e46 commit 8687f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/clean.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct menu_item {
6666
char hotkey;
6767
const char *title;
6868
int selected;
69-
int (*fn)();
69+
int (*fn)(void);
7070
};
7171

7272
enum menu_stuff_type {

0 commit comments

Comments
 (0)