[vlc-devel] [PATCH v2] codec/telx: Fix warning
Johan Gunnarsson
johan.gunnarsson at gmail.com
Sat Nov 9 16:27:42 CET 2019
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)));
^
---
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
/*****************************************************************************
--
2.17.1
More information about the vlc-devel
mailing list