Skip to contentSkip to conversation

Sparse: fix "non-ANSI function declaration" warnings

RFC PATCH In review Ramsay Jones 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/10 Sparse: fix "non-ANSI function declaration" warnings

---
 config.c          |    2 +-
 merge-recursive.c |    2 +-
 sha1_file.c       |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
config.c +1 -1
index 7b655fd..5754ec2 100644
@@ -512,7 +512,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");
 
merge-recursive.c +1 -1
index 8f72b2c..2042004 100644
@@ -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) {
sha1_file.c +1 -1
index be991ed..7b77468 100644
@@ -412,7 +412,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"
Signature · 1 line
1.5.2