clean: use f(void) instead of f() to declare a pointer to a function without arguments
authorRené Scharfe <l.s.r@web.de>
Sat, 16 Aug 2014 11:16:56 +0000 (13:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Aug 2014 16:36:56 +0000 (09:36 -0700)
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>
builtin/clean.c
index df887a8a9644fc9fbd24fde0b8cbff16c9d8d4dd..95b41279c0dcc6781e210519183090d38d54c77a 100644 (file)
@@ -66,7 +66,7 @@ struct menu_item {
        char hotkey;
        const char *title;
        int selected;
-       int (*fn)();
+       int (*fn)(void);
 };
 
 enum menu_stuff_type {