From 8687f7776de7b7a266690af070f1674aecdbfb78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Scharfe?= Date: Sat, 16 Aug 2014 13:16:56 +0200 Subject: [PATCH] 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 --- builtin/clean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.11.4.GIT