{"thread":{"id":"43401","subject":"[PATCH] sparse fix: non-ANSI function declaration","startedAt":"2006-11-18T12:07:06Z","lastAt":"2006-11-18T12:07:06Z","messageCount":1,"participants":["Rene Scharfe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"294629","messageId":"455EF76A.5070705@lsrfire.ath.cx","threadId":"43401","inReplyTo":null,"subject":"[PATCH] sparse fix: non-ANSI function declaration","fromName":"Rene Scharfe","fromEmail":"rene.scharfe@lsrfire.ath.cx","sentAt":"2006-11-18T12:07:06Z","receivedAt":"2006-11-18T12:07:06Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"The declaration of discard_cache() in cache.h already has its \"void\".\n\nSigned-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>\n---\n index-pack.c |    2 +-\n read-cache.c |    2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/index-pack.c b/index-pack.c\nindex 042aea8..8331d99 100644\n--- a/index-pack.c\n+++ b/index-pack.c\n@@ -90,7 +90,7 @@ static SHA_CTX input_ctx;\n static int input_fd, output_fd, mmap_fd;\n \n /* Discard current buffer used content. */\n-static void flush()\n+static void flush(void)\n {\n \tif (input_offset) {\n \t\tif (output_fd >= 0)\ndiff --git a/read-cache.c b/read-cache.c\nindex 97c3867..0f5fb5b 100644\n--- a/read-cache.c\n+++ b/read-cache.c\n@@ -844,7 +844,7 @@ unmap:\n \tdie(\"index file corrupt\");\n }\n \n-int discard_cache()\n+int discard_cache(void)\n {\n \tint ret;\n \n-- \n1.4.4\n"}]}