Ticket #3428: mc-fix-wredundant-decls-warning.patch

File mc-fix-wredundant-decls-warning.patch, 1.6 KB (added by and, 10 years ago)
  • m4.include/mc-cflags.m4

    fix -Wredundant-decls compiler warnings
    and use compiler option for future compile checks
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    
    a b  
    6262    MC_CHECK_ONE_CFLAG([-Wno-unreachable-code]) 
    6363    MC_CHECK_ONE_CFLAG([-Wparentheses]) 
    6464    MC_CHECK_ONE_CFLAG([-Wpointer-sign]) 
     65    MC_CHECK_ONE_CFLAG([-Wredundant-decls]) 
    6566    MC_CHECK_ONE_CFLAG([-Wreturn-type]) 
    6667    MC_CHECK_ONE_CFLAG([-Wsequence-point]) 
    6768    MC_CHECK_ONE_CFLAG([-Wshadow]) 
  • lib/filehighlight/ini-file-read.c

    a b  
    3838 
    3939/*** global variables ****************************************************************************/ 
    4040 
    41 extern mc_skin_t mc_skin__default; 
    42  
    4341/*** file scope macro definitions ****************************************************************/ 
    4442 
    4543/*** file scope type declarations ****************************************************************/ 
  • lib/skin/internal.h

    a b  
    2020 
    2121/*** global variables defined in .c file *********************************************************/ 
    2222 
    23 extern mc_skin_t mc_skin__default; 
    24  
    2523/*** declarations of public functions ************************************************************/ 
    2624 
    2725gboolean mc_skin_ini_file_load (mc_skin_t *); 
  • lib/tty/tty-slang.c

    a b  
    5757 
    5858/*** global variables ****************************************************************************/ 
    5959 
    60 extern int reset_hp_softkeys; 
    61  
    6260/*** file scope macro definitions ****************************************************************/ 
    6361 
    6462#ifndef SLTT_MAX_SCREEN_COLS