From 1ccdfb683ad6c7e59793136c3a657ddf131cafd1 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 22 Sep 2015 22:27:01 +0200 Subject: Remove old-style function definitions. We already require -std=gnu99 and old-style function definitions might hide some compiler warnings. Signed-off-by: Mark Wielaard --- src/ChangeLog | 4 ++++ src/strip.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ChangeLog b/src/ChangeLog index 238c4160..49aa3f7e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2015-09-22 Mark Wielaard + + * strip.c (cleanup_debug): Remove old-style function definitions. + 2015-09-09 Chih-Hung Hsieh * readelf.c (print_debug_exception_table): Initialize variable before diff --git a/src/strip.c b/src/strip.c index 5e69334b..8b08d72d 100644 --- a/src/strip.c +++ b/src/strip.c @@ -119,7 +119,7 @@ static int debug_fd = -1; static char *tmp_debug_fname = NULL; /* Close debug file descriptor, if opened. And remove temporary debug file. */ -static void cleanup_debug (); +static void cleanup_debug (void); #define INTERNAL_ERROR(fname) \ do { \ @@ -2208,7 +2208,7 @@ cannot set access and modification date of '%s'"), } static void -cleanup_debug () +cleanup_debug (void) { if (debug_fd >= 0) { -- cgit v1.2.3