From acd96b8c80a584d877845646ceac388feda46748 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 1 Jan 2018 19:28:24 +0100 Subject: [PATCH] build: fix gcc warnings abuot old K&R style function declarations Older gcc complain about the K&R-style prototype. Fix 'em. (Forward ported from a deutex 4.4.x patch.) src/deutex.c:108:1: warning: function declaration is not a prototype src/deutex.c:1611:13: warning: function declaration is not a prototype --- src/deutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deutex.c b/src/deutex.c index 15ff8c3..505a352 100644 --- a/src/deutex.c +++ b/src/deutex.c @@ -76,7 +76,7 @@ const char *palette_lump = "PLAYPAL"; static char anon[1] = { '\0' }; typedef void (*comfun_t) (int argc, const char *argv[]); -static void opt_widths(); +static void opt_widths(void); static int is_prefix(const char *s1, const char *s2); static void call_opt(comfun_t func, ...); @@ -1212,7 +1212,7 @@ void COMformat(int argc, const char *argv[]) /* * opt_widths - make a pass through Com and compute widths per section */ -static void opt_widths() +static void opt_widths(void) { comdef_t *d; comdef_t *current_section = NULL; -- 2.15.1