Ticket #3424: mc-fix-wdeclaration-after-statement-warning.patch

File mc-fix-wdeclaration-after-statement-warning.patch, 608 bytes (added by and, 10 years ago)
  • lib/mcconfig/paths.c

    fix -Wdeclaration-after-statement compiler warnings
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    
    a b  
    286286mc_config_init_config_paths (GError ** mcerror) 
    287287{ 
    288288    char *dir; 
    289  
     289#ifndef MC_HOMEDIR_XDG 
     290    char *defined_userconf_dir; 
     291#endif 
    290292    mc_return_if_error (mcerror); 
    291293 
    292294    if (xdg_vars_initialized) 
     
    345347 
    346348    mc_config_fix_migrated_rules (); 
    347349#else /* MC_HOMEDIR_XDG */ 
    348     char *defined_userconf_dir; 
    349350 
    350351    defined_userconf_dir = tilde_expand (MC_USERCONF_DIR); 
    351352    if (g_path_is_absolute (defined_userconf_dir))