[vlc-commits] input/item: fix unused warning

Thomas Guillem git at videolan.org
Wed Jan 11 13:28:32 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan 11 13:26:58 2017 +0100| [9f485f46162660e19b2ec0d81e387d1931237232] | committer: Thomas Guillem

input/item: fix unused warning

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f485f46162660e19b2ec0d81e387d1931237232
---

 src/input/item.c | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/src/input/item.c b/src/input/item.c
index bb88795..31d3b4f 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -765,20 +765,6 @@ static int InputItemVaAddInfo( input_item_t *p_i,
     return VLC_SUCCESS;
 }
 
-static int InputItemAddInfo( input_item_t *p_i,
-                             const char *psz_cat,
-                             const char *psz_name,
-                             const char *psz_format, ... )
-{
-    va_list args;
-
-    va_start( args, psz_format );
-    const int i_ret = InputItemVaAddInfo( p_i, psz_cat, psz_name, psz_format, args );
-    va_end( args );
-
-    return i_ret;
-}
-
 int input_item_AddInfo( input_item_t *p_i,
                         const char *psz_cat,
                         const char *psz_name,
@@ -917,6 +903,22 @@ void input_item_SetEpgEvent( input_item_t *p_item, const vlc_epg_event_t *p_epg_
 }
 
 //#define EPG_DEBUG
+#ifdef EPG_DEBUG
+static int InputItemAddInfo( input_item_t *p_i,
+                             const char *psz_cat,
+                             const char *psz_name,
+                             const char *psz_format, ... )
+{
+    va_list args;
+
+    va_start( args, psz_format );
+    const int i_ret = InputItemVaAddInfo( p_i, psz_cat, psz_name, psz_format, args );
+    va_end( args );
+
+    return i_ret;
+}
+#endif
+
 void input_item_SetEpg( input_item_t *p_item, const vlc_epg_t *p_update, bool b_current_source )
 {
     vlc_epg_t *p_epg = vlc_epg_Duplicate( p_update );



More information about the vlc-commits mailing list