]> granicus.if.org Git - nethack/commitdiff
fix warning
authornhmall <nhmall@nethack.org>
Thu, 26 Jan 2023 05:49:11 +0000 (00:49 -0500)
committernhmall <nhmall@nethack.org>
Thu, 26 Jan 2023 05:49:11 +0000 (00:49 -0500)
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

index b00af33bd2c871085df76f92d5b6a5f100c6d0d9..0136dfe36f2efaa39523d4e7ff0a287af1055ee4 100644 (file)
@@ -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;