summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-08-16 13:16:56 +0200
committerJunio C Hamano <gitster@pobox.com>2014-08-18 09:36:56 -0700
commit8687f7776de7b7a266690af070f1674aecdbfb78 (patch)
tree411d404342a95d760f66a70dd5ae05e5d00cba0e
parent9f93e4611f72577306e369a64d0a4da847be9751 (diff)
downloadgit-8687f7776de7b7a266690af070f1674aecdbfb78.tar.gz
clean: use f(void) instead of f() to declare a pointer to a function without argumentsrs/clean-menu-item-defn
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>
-rw-r--r--builtin/clean.c2
1 files changed, 1 insertions, 1 deletions
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 {