From 7ecb1e0757a406bc9c854001e099dcb55bca5f7a Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 26 Jan 2023 00:49:11 -0500 Subject: [PATCH] fix warning In file included from makedefs.c:180: ./../src/mdlib.c:92:12: warning: unused function 'count_and_validate_soundlibopts' [-Wunused-function] static int count_and_validate_soundlibopts(void); ^ 1 warning generated. Function definition is in the #ifndef MAKEDEFS_C section, so move the prototype there too. --- src/mdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdlib.c b/src/mdlib.c index b00af33bd..0136dfe36 100644 --- a/src/mdlib.c +++ b/src/mdlib.c @@ -89,7 +89,6 @@ extern void free_nomakedefs(void); /* date.c */ void build_options(void); static int count_and_validate_winopts(void); -static int count_and_validate_soundlibopts(void); static void opt_out_words(char *, int *); static void build_savebones_compat_string(void); @@ -161,6 +160,7 @@ static struct win_information window_opts[] = { }; #if !defined(MAKEDEFS_C) +static int count_and_validate_soundlibopts(void); struct soundlib_information { enum soundlib_ids id;