From: Junio C Hamano Date: Wed, 13 Jun 2007 08:22:51 +0000 (-0700) Subject: -Wold-style-definition fix X-Git-Tag: v1.5.3-rc0~101 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b79d18c92d9f4841a6a1a29b7b2373a8ff9871e1;p=git.git -Wold-style-definition fix Signed-off-by: Junio C Hamano --- diff --git a/config.c b/config.c index 58d3ed5d3..e323153ae 100644 --- a/config.c +++ b/config.c @@ -523,7 +523,7 @@ static int store_aux(const char* key, const char* value) return 0; } -static int write_error() +static int write_error(void) { fprintf(stderr, "Failed to write new configuration file\n"); diff --git a/merge-recursive.c b/merge-recursive.c index 4a82b741a..c8539ec0b 100644 --- a/merge-recursive.c +++ b/merge-recursive.c @@ -127,7 +127,7 @@ static void output(int v, const char *fmt, ...) va_end(args); } -static void flush_output() +static void flush_output(void) { struct output_buffer *b, *n; for (b = output_list; b; b = n) { diff --git a/sha1_file.c b/sha1_file.c index 2b860868f..eb7fc922d 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -413,7 +413,7 @@ static size_t peak_pack_mapped; static size_t pack_mapped; struct packed_git *packed_git; -void pack_report() +void pack_report(void) { fprintf(stderr, "pack_report: getpagesize() = %10" SZ_FMT "\n"