Unused variable
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Mon, 12 Jan 2009 17:51:23 +0000 (19:51 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Mon, 12 Jan 2009 17:51:23 +0000 (19:51 +0200)
modules/misc/lua/libs/playlist.c

index 0a2cf8d..b4113bf 100644 (file)
@@ -267,9 +267,8 @@ static int vlclua_playlist_get( lua_State *L )
                                 : p_playlist->p_root_onelevel;
         else
         {
-            int i;
 #ifdef FIX_THAT_CODE_NOT_TO_MESS_WITH_PLAYLIST_INTERNALS
-            for( i = 0; i < p_playlist->i_sds; i++ )
+            for( int i = 0; i < p_playlist->i_sds; i++ )
             {
                 if( !strcasecmp( psz_what,
                                  p_playlist->pp_sds[i]->p_sd->psz_module ) )