mirror of
https://github.com/MidnightCommander/mc
synced 2025-04-01 12:42:57 +03:00
Ticket #3429: fix -Wstrict-prototypes compiler warnings...
...and use compiler option for future compile checks. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
44bf7e8d80
commit
1a5015aa87
@ -69,6 +69,7 @@ dnl MC_CHECK_ONE_CFLAG([-Wbad-function-cast])
|
||||
MC_CHECK_ONE_CFLAG([-Wshadow])
|
||||
MC_CHECK_ONE_CFLAG([-Wsign-compare])
|
||||
dnl MC_CHECK_ONE_CFLAG([-Wstrict-aliasing])
|
||||
MC_CHECK_ONE_CFLAG([-Wstrict-prototypes])
|
||||
MC_CHECK_ONE_CFLAG([-Wswitch])
|
||||
MC_CHECK_ONE_CFLAG([-Wtype-limits])
|
||||
MC_CHECK_ONE_CFLAG([-Wuninitialized])
|
||||
|
@ -200,7 +200,7 @@ background_attention (int fd, void *closure)
|
||||
int (*non_have_ctx3) (file_op_context_t *, int, char *, char *, char *);
|
||||
int (*non_have_ctx4) (file_op_context_t *, int, char *, char *, char *, char *);
|
||||
|
||||
char *(*ret_str0) ();
|
||||
char *(*ret_str0) (void);
|
||||
char *(*ret_str1) (char *);
|
||||
char *(*ret_str2) (char *, char *);
|
||||
char *(*ret_str3) (char *, char *, char *);
|
||||
|
@ -390,7 +390,7 @@ check_sid (void)
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static void
|
||||
init_raw_mode ()
|
||||
init_raw_mode (void)
|
||||
{
|
||||
static int initialized = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user