Ticket #3429: mc-fix-wstrict-prototypes-warning.patch

File mc-fix-wstrict-prototypes-warning.patch, 1.2 KB (added by and, 10 years ago)
  • m4.include/mc-cflags.m4

    fix -Wstrict-prototypes compiler warnings
    and use compiler option for future compile checks
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    
    a b  
    6969    MC_CHECK_ONE_CFLAG([-Wshadow]) 
    7070    MC_CHECK_ONE_CFLAG([-Wsign-compare]) 
    7171dnl    MC_CHECK_ONE_CFLAG([-Wstrict-aliasing]) 
     72    MC_CHECK_ONE_CFLAG([-Wstrict-prototypes]) 
    7273    MC_CHECK_ONE_CFLAG([-Wswitch]) 
    7374    MC_CHECK_ONE_CFLAG([-Wtype-limits]) 
    7475    MC_CHECK_ONE_CFLAG([-Wuninitialized]) 
  • src/background.c

    a b  
    200200        int (*non_have_ctx3) (file_op_context_t *, int, char *, char *, char *); 
    201201        int (*non_have_ctx4) (file_op_context_t *, int, char *, char *, char *, char *); 
    202202 
    203         char *(*ret_str0) (); 
     203        char *(*ret_str0) (void); 
    204204        char *(*ret_str1) (char *); 
    205205        char *(*ret_str2) (char *, char *); 
    206206        char *(*ret_str3) (char *, char *, char *); 
  • src/subshell.c

    a b  
    390390/* --------------------------------------------------------------------------------------------- */ 
    391391 
    392392static void 
    393 init_raw_mode () 
     393init_raw_mode (void) 
    394394{ 
    395395    static int initialized = 0; 
    396396