From 8687f7776de7b7a266690af070f1674aecdbfb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Sat, 16 Aug 2014 13:16:56 +0200 Subject: 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 df887a8..95b4127 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 { -- cgit v0.10.2-6-g49f6