shithub: sox

Download patch

ref: b5d46fd0e56a3e302467ed51231a343f202a7917
parent: abdbc76688fe0dc7fb74bd9d354fb45f53033036
author: Doug Cook <idigdoug@users.sourceforge.net>
date: Sat Mar 19 22:30:48 EDT 2011

Fix warning for unused tagtype function

--- a/src/mp3.c
+++ b/src/mp3.c
@@ -224,6 +224,8 @@
 #endif /*HAVE_LAME*/
 } priv_t;
 
+#ifdef HAVE_MAD_H
+
 /* This function merges the functions tagtype() and id3_tag_query()
    from MAD's libid3tag, so we don't have to link to it
    Returns 0 if the frame is not an ID3 tag, tag length if it is */
@@ -252,6 +254,8 @@
 
     return 0;
 }
+
+#endif /*HAVE_MAD_H*/
 
 #include "mp3-util.h"