mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Ticket #2515: Unused variable if without WITH_BACKGROUND
Signed-off-by: Yury V. Zaytsev <yury@shurup.com> Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
630519fbbc
commit
f4cbe4a4f3
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user