Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
clean: use f(void) instead of f() to declare a pointer to a function without arguments
author
René Scharfe
<l.s.r@web.de>
Sat, 16 Aug 2014 11:16:56 +0000
(13:16 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 18 Aug 2014 16:36:56 +0000
(09:36 -0700)
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>
builtin/clean.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
9f93e46
)
diff --git
a/builtin/clean.c
b/builtin/clean.c
index df887a8a9644fc9fbd24fde0b8cbff16c9d8d4dd..95b41279c0dcc6781e210519183090d38d54c77a 100644
(file)
--- 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 {