[vlc-commits] kate: cleanup shadow variable and stray line
Alexandre Janniaux
git at videolan.org
Tue Nov 26 13:58:04 CET 2019
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Nov 26 10:56:41 2019 +0100| [b7e67d90fc22cef91d162ebd9e19ce7dbfd5296d] | committer: Thomas Guillem
kate: cleanup shadow variable and stray line
The code is usually using i_ret and having the macro using the same
name shadows it, emitting a compiler warning. Use a different name
instead.
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7e67d90fc22cef91d162ebd9e19ce7dbfd5296d
---
modules/codec/kate.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index cb2e2672fb..77b6b5b7c0 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -52,10 +52,11 @@
#define CHECK_TIGER_RET( statement ) \
do \
{ \
- int i_ret = (statement); \
- if( i_ret < 0 ) \
+ int i_ret_check = (statement); \
+ if( i_ret_check < 0 ) \
{ \
- msg_Dbg( p_dec, "Error in " #statement ": %d", i_ret ); \
+ msg_Dbg( p_dec, "Error in " #statement ": %d", \
+ i_ret_check ); \
} \
} while( 0 )
@@ -1322,4 +1323,3 @@ static void DecSysRelease( decoder_sys_t *p_sys )
free( p_sys );
}
-
More information about the vlc-commits
mailing list