Commit ac175b34 authored by Rafaël Carré's avatar Rafaël Carré

services_discovery/: fix warnings

parent 4c34dd94
...@@ -121,6 +121,11 @@ static void resolve_callback( ...@@ -121,6 +121,11 @@ static void resolve_callback(
{ {
services_discovery_t *p_sd = ( services_discovery_t* )userdata; services_discovery_t *p_sd = ( services_discovery_t* )userdata;
services_discovery_sys_t *p_sys = p_sd->p_sys; services_discovery_sys_t *p_sys = p_sd->p_sys;
VLC_UNUSED(interface); VLC_UNUSED(host_name);
#ifdef HAVE_AVAHI_06
VLC_UNUSED(flags);
#endif
#ifdef HAVE_AVAHI_06 #ifdef HAVE_AVAHI_06
if( event == AVAHI_RESOLVER_FAILURE ) if( event == AVAHI_RESOLVER_FAILURE )
...@@ -216,6 +221,10 @@ static void browse_callback( ...@@ -216,6 +221,10 @@ static void browse_callback(
#endif #endif
void* userdata ) void* userdata )
{ {
VLC_UNUSED(b);
#ifdef HAVE_AVAHI_06
VLC_UNUSED(flags);
#endif
services_discovery_t *p_sd = ( services_discovery_t* )userdata; services_discovery_t *p_sd = ( services_discovery_t* )userdata;
services_discovery_sys_t *p_sys = p_sd->p_sys; services_discovery_sys_t *p_sys = p_sd->p_sys;
if( event == AVAHI_BROWSER_NEW ) if( event == AVAHI_BROWSER_NEW )
......
...@@ -191,7 +191,7 @@ static void Close( vlc_object_t *p_this ) ...@@ -191,7 +191,7 @@ static void Close( vlc_object_t *p_this )
static void AddItem( services_discovery_t *p_sd, input_item_t * p_input static void AddItem( services_discovery_t *p_sd, input_item_t * p_input
#ifdef HAVE_HAL_1 #ifdef HAVE_HAL_1
,char* psz_device , const char* psz_device
#endif #endif
) )
{ {
...@@ -212,7 +212,7 @@ static void AddItem( services_discovery_t *p_sd, input_item_t * p_input ...@@ -212,7 +212,7 @@ static void AddItem( services_discovery_t *p_sd, input_item_t * p_input
#endif #endif
} }
static void AddDvd( services_discovery_t *p_sd, char *psz_device ) static void AddDvd( services_discovery_t *p_sd, const char *psz_device )
{ {
char *psz_name; char *psz_name;
char *psz_uri; char *psz_uri;
...@@ -247,7 +247,7 @@ static void AddDvd( services_discovery_t *p_sd, char *psz_device ) ...@@ -247,7 +247,7 @@ static void AddDvd( services_discovery_t *p_sd, char *psz_device )
} }
#ifdef HAVE_HAL_1 #ifdef HAVE_HAL_1
static void DelItem( services_discovery_t *p_sd, char* psz_udi ) static void DelItem( services_discovery_t *p_sd, const char* psz_udi )
{ {
services_discovery_sys_t *p_sys = p_sd->p_sys; services_discovery_sys_t *p_sys = p_sd->p_sys;
...@@ -267,7 +267,7 @@ static void DelItem( services_discovery_t *p_sd, char* psz_udi ) ...@@ -267,7 +267,7 @@ static void DelItem( services_discovery_t *p_sd, char* psz_udi )
} }
#endif #endif
static void AddCdda( services_discovery_t *p_sd, char *psz_device ) static void AddCdda( services_discovery_t *p_sd, const char *psz_device )
{ {
char *psz_uri; char *psz_uri;
char *psz_blockdevice; char *psz_blockdevice;
...@@ -294,7 +294,7 @@ static void AddCdda( services_discovery_t *p_sd, char *psz_device ) ...@@ -294,7 +294,7 @@ static void AddCdda( services_discovery_t *p_sd, char *psz_device )
vlc_gc_decref( p_input ); vlc_gc_decref( p_input );
} }
static void ParseDevice( services_discovery_t *p_sd, char *psz_device ) static void ParseDevice( services_discovery_t *p_sd, const char *psz_device )
{ {
char *psz_disc_type; char *psz_disc_type;
services_discovery_sys_t *p_sys = p_sd->p_sys; services_discovery_sys_t *p_sys = p_sd->p_sys;
...@@ -381,11 +381,13 @@ static void Run( services_discovery_t *p_sd ) ...@@ -381,11 +381,13 @@ static void Run( services_discovery_t *p_sd )
#ifdef HAVE_HAL_1 #ifdef HAVE_HAL_1
void DeviceAdded( LibHalContext *p_ctx, const char *psz_udi ) void DeviceAdded( LibHalContext *p_ctx, const char *psz_udi )
{ {
ParseDevice( p_sd_global, (char*) psz_udi ); VLC_UNUSED(p_ctx);
ParseDevice( p_sd_global, psz_udi );
} }
void DeviceRemoved( LibHalContext *p_ctx, const char *psz_udi ) void DeviceRemoved( LibHalContext *p_ctx, const char *psz_udi )
{ {
DelItem( p_sd_global, (char*) psz_udi ); VLC_UNUSED(p_ctx);
DelItem( p_sd_global, psz_udi );
} }
#endif #endif
...@@ -189,6 +189,8 @@ static int UrlsChange( vlc_object_t *p_this, char const *psz_var, ...@@ -189,6 +189,8 @@ static int UrlsChange( vlc_object_t *p_this, char const *psz_var,
vlc_value_t oldval, vlc_value_t newval, vlc_value_t oldval, vlc_value_t newval,
void *p_data ) void *p_data )
{ {
VLC_UNUSED(p_this); VLC_UNUSED(psz_var); VLC_UNUSED(oldval);
VLC_UNUSED(newval);
services_discovery_sys_t *p_sys = (services_discovery_sys_t *)p_data; services_discovery_sys_t *p_sys = (services_discovery_sys_t *)p_data;
p_sys->b_update = VLC_TRUE; p_sys->b_update = VLC_TRUE;
return VLC_SUCCESS; return VLC_SUCCESS;
......
...@@ -685,6 +685,7 @@ static int Demux( demux_t *p_demux ) ...@@ -685,6 +685,7 @@ static int Demux( demux_t *p_demux )
static int Control( demux_t *p_demux, int i_query, va_list args ) static int Control( demux_t *p_demux, int i_query, va_list args )
{ {
VLC_UNUSED(p_demux); VLC_UNUSED(i_query); VLC_UNUSED(args);
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
...@@ -244,4 +244,5 @@ static void Run( services_discovery_t *p_sd ) ...@@ -244,4 +244,5 @@ static void Run( services_discovery_t *p_sd )
*****************************************************************************/ *****************************************************************************/
static void Close( vlc_object_t *p_this ) static void Close( vlc_object_t *p_this )
{ {
VLC_UNUSED(p_this);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment