Commit 6c76ac22 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

demux/adaptive: FakeESOut: silence warning (unused expression)

Most compilers recognize static_cast<void>( ... ) as a mechanism to
silence warnings related to unused expressions, the previous
implementation however casted the result to void* which at all does
not have the same semantics.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2515e490
......@@ -406,7 +406,7 @@ int FakeESOut::esOutControl_Callback(es_out_t *fakees, int i_query, va_list args
/* For others, we don't have the delorean, so always lie */
case ES_OUT_GET_ES_STATE:
{
static_cast<void*>(va_arg( args, es_out_id_t * ));
static_cast<void>(va_arg( args, es_out_id_t * ));
bool *pb = static_cast<bool *>(va_arg( args, bool * ));
*pb = true;
// ft
......
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