shithub: sox

Download patch

ref: 0e6972cf5804d39f2db6389fb33c217361c93c54
parent: 0cda7774dfa19e5a4da3d91a47289c5f9d48ab7c
author: Mans Rullgard <mans@mansr.com>
date: Sat Aug 1 09:48:38 EDT 2020

mp3: fix warning when building without twolame support

--- a/src/mp3.c
+++ b/src/mp3.c
@@ -186,6 +186,7 @@
   LAME_FUNC_ID3(f,x, size_t, lame_get_id3v2_tag, (lame_global_flags *, unsigned char*, size_t)) \
   LAME_FUNC_ID3(f,x, int, id3tag_set_fieldvalue, (lame_global_flags *, const char *))
 
+#ifdef HAVE_TWOLAME
 static const char* const twolame_library_names[] =
 {
 #ifdef DL_TWOLAME
@@ -194,6 +195,7 @@
 #endif
   NULL
 };
+#endif
 
 #ifdef DL_TWOLAME
   #define TWOLAME_FUNC LSX_DLENTRY_DYNAMIC