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:
Andreas Mohr 2015-03-31 20:52:29 +03:00 committed by Andrew Borodin
parent 44bf7e8d80
commit 1a5015aa87
3 changed files with 3 additions and 2 deletions

View File

@ -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])

View File

@ -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 *);

View File

@ -390,7 +390,7 @@ check_sid (void)
/* --------------------------------------------------------------------------------------------- */
static void
init_raw_mode ()
init_raw_mode (void)
{
static int initialized = 0;