vlc | branch: master | Filip Roséen <[email protected]> | Fri Mar 17 03:35:50 2017 +0100| [6c76ac223af0bb21b09533e667811b3324c967e6] | committer: 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 <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c76ac223af0bb21b09533e667811b3324c967e6 --- modules/demux/adaptive/plumbing/FakeESOut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp b/modules/demux/adaptive/plumbing/FakeESOut.cpp index 92b1e57..a7b99c1 100644 --- a/modules/demux/adaptive/plumbing/FakeESOut.cpp +++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp @@ -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 _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
