[vlc-commits] codec/telx: Fix warning

Johan Gunnarsson git at videolan.org
Tue Nov 12 11:02:54 CET 2019


vlc | branch: master | Johan Gunnarsson <johan.gunnarsson at gmail.com> | Sat Nov  9 16:27:42 2019 +0100| [eb06ce12b578bb5b0018ac9209098eddd988307e] | committer: Thomas Guillem

codec/telx: Fix warning

Make sure the dbg macro can't compile down to nothing, so it can be used in
if statements without braces.

codec/telx.c: In function ‘Decode’:
codec/telx.c:686:81: warning: suggest braces around empty body in an ‘if’
statement [-Wempty-body]
(long int)(p_sys->prev_pts+1500000)));
                                     ^

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eb06ce12b578bb5b0018ac9209098eddd988307e
---

 modules/codec/telx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/telx.c b/modules/codec/telx.c
index 8446e1a5f4..dc5259f4e2 100644
--- a/modules/codec/telx.c
+++ b/modules/codec/telx.c
@@ -40,7 +40,7 @@
 #ifdef TELX_DEBUG
 #   define dbg( a ) msg_Dbg a
 #else
-#   define dbg( a )
+#   define dbg( a ) (void) 0
 #endif
 
 /*****************************************************************************



More information about the vlc-commits mailing list