Skip to content

Commit b79d18c

Browse files
committed
-Wold-style-definition fix
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 334d28a commit b79d18c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static int store_aux(const char* key, const char* value)
523523
return 0;
524524
}
525525

526-
static int write_error()
526+
static int write_error(void)
527527
{
528528
fprintf(stderr, "Failed to write new configuration file\n");
529529

merge-recursive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static void output(int v, const char *fmt, ...)
127127
va_end(args);
128128
}
129129

130-
static void flush_output()
130+
static void flush_output(void)
131131
{
132132
struct output_buffer *b, *n;
133133
for (b = output_list; b; b = n) {

sha1_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static size_t peak_pack_mapped;
413413
static size_t pack_mapped;
414414
struct packed_git *packed_git;
415415

416-
void pack_report()
416+
void pack_report(void)
417417
{
418418
fprintf(stderr,
419419
"pack_report: getpagesize() = %10" SZ_FMT "\n"

0 commit comments

Comments
 (0)