Ticket #3463: enable -Wbad-function-cast option and fix relative warnings.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2015-05-10 17:29:21 +03:00 committed by Andrew Borodin
parent 3ba8109fe9
commit d2713adbc6
2 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ dnl MC_CHECK_ONE_CFLAG([-fno-stack-protector])
esac
dnl Sorted -W options:
dnl MC_CHECK_ONE_CFLAG([-Wbad-function-cast])
MC_CHECK_ONE_CFLAG([-Wbad-function-cast])
MC_CHECK_ONE_CFLAG([-Wcomment])
MC_CHECK_ONE_CFLAG([-Wdeclaration-after-statement])
MC_CHECK_ONE_CFLAG([-Wfloat-equal])

View File

@ -581,7 +581,7 @@ do_compute_dir_size (const vfs_path_t * dirname_vpath, dirsize_status_msg_t * ds
dsm->dirname_vpath = tmp_vpath;
dsm->dir_count = *dir_count;
dsm->total_size = *ret_total;
ret = (FileProgressStatus) sm->update (sm);
ret = sm->update (sm);
}
}
@ -714,8 +714,8 @@ real_query_recursive (file_op_context_t * ctx, enum OperationMode mode, const ch
query_set_sel (1);
ctx->recursive_result =
(FileCopyMode) query_dialog (op_names[OP_DELETE], text, D_ERROR, 5,
_("&Yes"), _("&No"), _("A&ll"), _("Non&e"), _("&Abort"));
query_dialog (op_names[OP_DELETE], text, D_ERROR, 5, _("&Yes"), _("&No"), _("A&ll"),
_("Non&e"), _("&Abort"));
g_free (text);
if (ctx->recursive_result != RECURSIVE_ABORT)