[vlc-devel] [PATCH] Hide unused parameter warnings
Petri Hintukainen
phintuka at gmail.com
Sun Sep 27 16:17:59 CEST 2015
---
lib/media_player.c | 3 +++
modules/access/zip/zipaccess.c | 1 +
modules/audio_output/pulse.c | 1 +
modules/control/gestures.c | 1 +
modules/control/netsync.c | 2 +-
modules/demux/mp4/mp4.c | 1 +
modules/lua/extension.c | 1 +
modules/misc/gnutls.c | 1 +
src/input/es_out_timeshift.c | 1 +
src/misc/variables.c | 2 ++
src/playlist/item.c | 1 +
src/video_output/display.c | 2 ++
12 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/lib/media_player.c b/lib/media_player.c
index 2136ab8..ff93ce9 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -264,6 +264,7 @@ input_event_changed( vlc_object_t * p_this, char const * psz_cmd,
void * p_userdata )
{
VLC_UNUSED(oldval);
+ VLC_UNUSED(psz_cmd);
input_thread_t * p_input = (input_thread_t *)p_this;
libvlc_media_player_t * p_mi = p_userdata;
libvlc_event_t event;
@@ -1064,6 +1065,7 @@ void * libvlc_media_player_get_nsobject( libvlc_media_player_t *p_mi )
#ifdef __APPLE__
return var_GetAddress (p_mi, "drawable-nsobject");
#else
+ VLC_UNUSED(p_mi);
return NULL;
#endif
}
@@ -1135,6 +1137,7 @@ void *libvlc_media_player_get_hwnd( libvlc_media_player_t *p_mi )
#if defined (_WIN32) || defined (__OS2__)
return (void *)(uintptr_t)var_GetInteger (p_mi, "drawable-hwnd");
#else
+ VLC_UNUSED(p_mi);
return NULL;
#endif
}
diff --git a/modules/access/zip/zipaccess.c b/modules/access/zip/zipaccess.c
index 9655ce4..fc3b2b9 100644
--- a/modules/access/zip/zipaccess.c
+++ b/modules/access/zip/zipaccess.c
@@ -298,6 +298,7 @@ static int AccessSeek( access_t *p_access, uint64_t seek_len )
*****************************************************************************/
static void* ZCALLBACK ZipIO_Open( void* opaque, const char* file, int mode )
{
+ VLC_UNUSED(mode);
assert(opaque != NULL);
assert(mode == (ZLIB_FILEFUNC_MODE_READ | ZLIB_FILEFUNC_MODE_EXISTING));
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 29170b2..3d8aeda 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -172,6 +172,7 @@ static void sink_event(pa_context *ctx, unsigned type, uint32_t idx,
/*** Latency management and lip synchronization ***/
static void stream_start_now(pa_stream *s, audio_output_t *aout)
{
+ VLC_UNUSED(aout);
pa_operation *op;
assert (aout->sys->trigger == NULL);
diff --git a/modules/control/gestures.c b/modules/control/gestures.c
index ebf8403..babe8fa 100644
--- a/modules/control/gestures.c
+++ b/modules/control/gestures.c
@@ -501,6 +501,7 @@ static int InputEvent( vlc_object_t *p_this, char const *psz_var,
static int PlaylistEvent( vlc_object_t *p_this, char const *psz_var,
vlc_value_t oldval, vlc_value_t val, void *p_data )
{
+ VLC_UNUSED( oldval );
intf_thread_t *p_intf = p_data;
intf_sys_t *p_sys = p_intf->p_sys;
input_thread_t *p_input = val.p_address;
diff --git a/modules/control/netsync.c b/modules/control/netsync.c
index 82479db..26d911d 100644
--- a/modules/control/netsync.c
+++ b/modules/control/netsync.c
@@ -276,7 +276,7 @@ static void *Slave(void *handle)
static int PlaylistEvent(vlc_object_t *object, char const *cmd,
vlc_value_t oldval, vlc_value_t newval, void *data)
{
- VLC_UNUSED(cmd); VLC_UNUSED(object);
+ VLC_UNUSED(cmd); VLC_UNUSED(object); VLC_UNUSED(oldval);
intf_thread_t *intf = data;
intf_sys_t *sys = intf->p_sys;
input_thread_t *input = newval.p_address;
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 4b741c7..205664e 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -4133,6 +4133,7 @@ static MP4_Box_t * LoadNextChunk( demux_t *p_demux )
static bool BoxExistsInRootTree( MP4_Box_t *p_root, uint32_t i_type, uint64_t i_pos )
{
+ VLC_UNUSED(i_type);
while ( p_root )
{
if ( p_root->i_pos == i_pos )
diff --git a/modules/lua/extension.c b/modules/lua/extension.c
index 5958af1..8592f8b 100644
--- a/modules/lua/extension.c
+++ b/modules/lua/extension.c
@@ -1168,6 +1168,7 @@ static int vlclua_extension_dialog_callback( vlc_object_t *p_this,
static void inputItemMetaChanged( const vlc_event_t *p_event,
void *data )
{
+ VLC_UNUSED( p_event );
assert( p_event && p_event->type == vlc_InputItemMetaChanged );
extension_t *p_ext = ( extension_t* ) data;
diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index fc73041..2e5b8e9 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -549,6 +549,7 @@ static int gnutls_ServerSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *tls,
int fd, const char *hostname,
const char *const *alpn)
{
+ VLC_UNUSED(hostname);
vlc_tls_creds_sys_t *sys = crd->sys;
assert (hostname == NULL);
diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c
index 33a965e..ea9e6fc 100644
--- a/src/input/es_out_timeshift.c
+++ b/src/input/es_out_timeshift.c
@@ -923,6 +923,7 @@ static bool TsIsUnused( ts_thread_t *p_ts )
}
static int TsChangePause( ts_thread_t *p_ts, bool b_source_paused, bool b_paused, mtime_t i_date )
{
+ VLC_UNUSED(b_source_paused);
vlc_mutex_lock( &p_ts->lock );
int i_ret;
diff --git a/src/misc/variables.c b/src/misc/variables.c
index 7cadfa5..9038c39 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -793,6 +793,7 @@ int var_Type( vlc_object_t *p_this, const char *psz_name )
int var_SetChecked( vlc_object_t *p_this, const char *psz_name,
int expected_type, vlc_value_t val )
{
+ VLC_UNUSED(expected_type);
variable_t *p_var;
vlc_value_t oldval;
@@ -852,6 +853,7 @@ int var_Set( vlc_object_t *p_this, const char *psz_name, vlc_value_t val )
int var_GetChecked( vlc_object_t *p_this, const char *psz_name,
int expected_type, vlc_value_t *p_val )
{
+ VLC_UNUSED(expected_type);
assert( p_this );
vlc_object_internals_t *p_priv = vlc_internals( p_this );
diff --git a/src/playlist/item.c b/src/playlist/item.c
index 8d54e86..4b9c9df 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -828,6 +828,7 @@ static void ChangeToNode( playlist_t *p_playlist, playlist_item_t *p_item )
int playlist_DeleteItem( playlist_t * p_playlist, playlist_item_t *p_item,
bool b_stop )
{
+ VLC_UNUSED( b_stop );
assert( b_stop );
return playlist_NodeDelete( p_playlist, p_item, true, false );
}
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 76287cf..8612a10 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -1414,6 +1414,7 @@ static void SplitterPrepare(vout_display_t *vd,
picture_t *picture,
subpicture_t *subpicture)
{
+ VLC_UNUSED(subpicture);
vout_display_sys_t *sys = vd->sys;
picture_Hold(picture);
@@ -1437,6 +1438,7 @@ static void SplitterDisplay(vout_display_t *vd,
picture_t *picture,
subpicture_t *subpicture)
{
+ VLC_UNUSED(subpicture);
vout_display_sys_t *sys = vd->sys;
assert(!subpicture);
--
2.1.4
More information about the vlc-devel
mailing list