{"thread":{"id":"37358","subject":"[PATCH] clean: use f(void) instead of f() to declare a pointer to a function without arguments","startedAt":"2014-08-16T11:16:56Z","lastAt":"2014-08-16T11:16:56Z","messageCount":1,"participants":["René Scharfe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"247774","messageId":"53EF3DA8.7040605@web.de","threadId":"37358","inReplyTo":null,"subject":"[PATCH] clean: use f(void) instead of f() to declare a pointer to a function without arguments","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2014-08-16T11:16:56Z","receivedAt":"2014-08-16T11:16:56Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Explicitly state that menu_item functions like clean_cmd don't take\nany arguments by using void instead of an empty parameter list.\n\nFound using gcc -Wstrict-prototypes.\n\nSigned-off-by: Rene Scharfe <l.s.r@web.de>\n---\n builtin/clean.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/builtin/clean.c b/builtin/clean.c\nindex 1032563..3beeea6 100644\n--- a/builtin/clean.c\n+++ b/builtin/clean.c\n@@ -67,7 +67,7 @@ struct menu_item {\n \tchar hotkey;\n \tconst char *title;\n \tint selected;\n-\tint (*fn)();\n+\tint (*fn)(void);\n };\n \n enum menu_stuff_type {\n-- \n2.1.0\n"}]}