summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-08-16 11:16:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-08-18 16:36:56 (GMT)
commit8687f7776de7b7a266690af070f1674aecdbfb78 (patch)
tree411d404342a95d760f66a70dd5ae05e5d00cba0e /builtin
parent9f93e4611f72577306e369a64d0a4da847be9751 (diff)
downloadgit-8687f7776de7b7a266690af070f1674aecdbfb78.zip
git-8687f7776de7b7a266690af070f1674aecdbfb78.tar.gz
git-8687f7776de7b7a266690af070f1674aecdbfb78.tar.bz2
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 <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/clean.c2
1 files changed, 1 insertions, 1 deletions
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 {