From d2713adbc6d9b1c1b9c5ed96cabb345a777ed423 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Sun, 10 May 2015 17:29:21 +0300 Subject: [PATCH] Ticket #3463: enable -Wbad-function-cast option and fix relative warnings. Signed-off-by: Andrew Borodin --- m4.include/mc-cflags.m4 | 2 +- src/filemanager/file.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/m4.include/mc-cflags.m4 b/m4.include/mc-cflags.m4 index a9eecee9a..b81af43e1 100644 --- a/m4.include/mc-cflags.m4 +++ b/m4.include/mc-cflags.m4 @@ -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]) diff --git a/src/filemanager/file.c b/src/filemanager/file.c index 347888c68..0bacc5473 100644 --- a/src/filemanager/file.c +++ b/src/filemanager/file.c @@ -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)