[vlc-commits] demux/adaptive: FakeESOut: silence warning (unused expression)

Filip Roséen git at videolan.org
Fri Mar 17 19:13:35 CET 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | 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 <jb at videolan.org>

> 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



More information about the vlc-commits mailing list