From f4cbe4a4f35f0726101e5f344b8e163020d7f2e6 Mon Sep 17 00:00:00 2001 From: Pavel Vasilyev Date: Wed, 23 Mar 2011 17:34:41 +0100 Subject: [PATCH] Ticket #2515: Unused variable if without WITH_BACKGROUND Signed-off-by: Yury V. Zaytsev Signed-off-by: Slava Zanko --- lib/widget/wtools.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/widget/wtools.c b/lib/widget/wtools.c index 150c63642..e7ef93147 100644 --- a/lib/widget/wtools.c +++ b/lib/widget/wtools.c @@ -237,6 +237,7 @@ fg_input_dialog_help (const char *header, const char *text, const char *help, /* --------------------------------------------------------------------------------------------- */ +#ifdef WITH_BACKGROUND static int wtools_parent_call (void *routine, gpointer ctx, int argc, ...) { @@ -265,6 +266,7 @@ wtools_parent_call_string (void *routine, int argc, ...) va_end (event_data.ap); return event_data.ret.s; } +#endif /* WITH_BACKGROUND */ /* --------------------------------------------------------------------------------------------- */ /*** public functions ****************************************************************************/ @@ -441,14 +443,14 @@ char * input_dialog_help (const char *header, const char *text, const char *help, const char *history_name, const char *def_text) { - union - { - void *p; - char *(*f) (const char *, const char *, const char *, const char *, const char *); - } func; #ifdef WITH_BACKGROUND if (mc_global.we_are_background) { + union + { + void *p; + char *(*f) (const char *, const char *, const char *, const char *, const char *); + } func; func.f = fg_input_dialog_help; return wtools_parent_call_string (func.p, 5, strlen (header), header, strlen (text),