From: René Scharfe Date: Sat, 16 Aug 2014 11:16:56 +0000 (+0200) Subject: clean: use f(void) instead of f() to declare a pointer to a function without arguments X-Git-Tag: v2.2.0-rc0~155^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8687f7776de7b7a266690af070f1674aecdbfb78;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/clean.c b/builtin/clean.c index df887a8a96..95b41279c0 100644 --- a/builtin/clean.c +++ b/builtin/clean.c @@ -66,7 +66,7 @@ struct menu_item { char hotkey; const char *title; int selected; - int (*fn)(); + int (*fn)(void); }; enum menu_stuff_type {