[vlc-devel] [PATCH] kate: cleanup shadow variable and stray line

Alexandre Janniaux ajanni at videolabs.io
Fri Nov 22 14:35:44 CET 2019


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.
---
 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 );
 }
-
-- 
2.24.0



More information about the vlc-devel mailing list