<div dir="ltr">On Mon, Mar 2, 2015 at 10:16 PM, Ian Chamberlain <span dir="ltr"><<a href="mailto:ian.h.chamberlain@gmail.com" target="_blank">ian.h.chamberlain@gmail.com</a>></span> wrote:<br><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There was an unused variable warning for i_ret. This should silence the warnings with a portable nop.<br>
---<br>
src/input/es_out.h | 11 +++++++++++<br>
1 file changed, 11 insertions(+)<br>
<br>
diff --git a/src/input/es_out.h b/src/input/es_out.h<br>
index 56cefed..af55a22 100644<br>
--- a/src/input/es_out.h<br>
+++ b/src/input/es_out.h<br>
@@ -25,6 +25,8 @@<br>
#ifndef LIBVLC_INPUT_ES_OUT_H<br>
#define LIBVLC_INPUT_ES_OUT_H 1<br>
<br>
+#define UNUSED(x) ((void)(x))<br>
+<br>
#include <vlc_common.h><br></blockquote><div><br></div><div>You should use VLC_UNUSED (conveniently defined in vlc_common.h, which is being included here already).<br><br></div><div>Best,<br></div><div>Tristan<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
enum es_out_mode_e<br>
@@ -88,6 +90,7 @@ static inline void es_out_SetMode( es_out_t *p_out, int i_mode )<br>
{<br>
int i_ret = es_out_Control( p_out, ES_OUT_SET_MODE, i_mode );<br>
assert( !i_ret );<br>
+ UNUSED(i_ret);<br>
}<br>
static inline mtime_t es_out_GetWakeup( es_out_t *p_out )<br>
{<br>
@@ -95,6 +98,7 @@ static inline mtime_t es_out_GetWakeup( es_out_t *p_out )<br>
int i_ret = es_out_Control( p_out, ES_OUT_GET_WAKE_UP, &i_wu );<br>
<br>
assert( !i_ret );<br>
+ UNUSED(i_ret);<br>
return i_wu;<br>
}<br>
static inline bool es_out_GetBuffering( es_out_t *p_out )<br>
@@ -103,6 +107,7 @@ static inline bool es_out_GetBuffering( es_out_t *p_out )<br>
int i_ret = es_out_Control( p_out, ES_OUT_GET_BUFFERING, &b );<br>
<br>
assert( !i_ret );<br>
+ UNUSED(i_ret);<br>
return b;<br>
}<br>
static inline bool es_out_GetEmpty( es_out_t *p_out )<br>
@@ -111,12 +116,14 @@ static inline bool es_out_GetEmpty( es_out_t *p_out )<br>
int i_ret = es_out_Control( p_out, ES_OUT_GET_EMPTY, &b );<br>
<br>
assert( !i_ret );<br>
+ UNUSED(i_ret);<br>
return b;<br>
}<br>
static inline void es_out_SetDelay( es_out_t *p_out, int i_cat, mtime_t i_delay )<br>
{<br>
int i_ret = es_out_Control( p_out, ES_OUT_SET_DELAY, i_cat, i_delay );<br>
assert( !i_ret );<br>
+ UNUSED(i_ret);<br>
}<br>
static inline int es_out_SetRecordState( es_out_t *p_out, bool b_record )<br>
{<br>
@@ -142,6 +149,7 @@ static inline void es_out_SetTimes( es_out_t *p_out, double f_position, mtime_t<br>
{<br>
int i_ret = es_out_Control( p_out, ES_OUT_SET_TIMES, f_position, i_time, i_length );<br>
assert( !i_ret );<br>
+ UNUSED(i_ret);<br>
}<br>
static inline void es_out_SetJitter( es_out_t *p_out,<br>
mtime_t i_pts_delay, mtime_t i_pts_jitter, int i_cr_average )<br>
@@ -149,6 +157,7 @@ static inline void es_out_SetJitter( es_out_t *p_out,<br>
int i_ret = es_out_Control( p_out, ES_OUT_SET_JITTER,<br>
i_pts_delay, i_pts_jitter, i_cr_average );<br>
assert( !i_ret );<br>
+ UNUSED(i_ret);<br>
}<br>
static inline int es_out_GetEsObjects( es_out_t *p_out, int i_id,<br>
vlc_object_t **pp_decoder, vout_thread_t **pp_vout, audio_output_t **pp_aout )<br>
@@ -160,12 +169,14 @@ static inline int es_out_GetGroupForced( es_out_t *p_out )<br>
int i_group;<br>
int i_ret = es_out_Control( p_out, ES_OUT_GET_GROUP_FORCED, &i_group );<br>
assert( !i_ret );<br>
+ UNUSED(i_ret);<br>
return i_group;<br>
}<br>
static inline void es_out_Eos( es_out_t *p_out )<br>
{<br>
int i_ret = es_out_Control( p_out, ES_OUT_SET_EOS );<br>
assert( !i_ret );<br>
+ UNUSED(i_ret);<br>
}<br>
<br>
es_out_t *input_EsOutNew( input_thread_t *, int i_rate );<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.3.1<br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
</font></span></blockquote></div><br></div></div></div>