0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.0.1180: compiler warnings without the +job feature

Problem:    Compiler warnings without the +job feature.
Solution:   Adjust #ifdefs. (John Marriott)
This commit is contained in:
Bram Moolenaar 2023-01-11 19:11:15 +00:00
parent 6aa0937fb8
commit bcbfaf32e0
2 changed files with 12 additions and 4 deletions

View File

@ -5580,6 +5580,7 @@ set_ref_in_item_partial(
return abort;
}
#ifdef FEAT_JOB_CHANNEL
/*
* Mark the job "pt" with "copyID".
* Also see set_ref_in_item().
@ -5591,7 +5592,6 @@ set_ref_in_item_job(
ht_stack_T **ht_stack,
list_stack_T **list_stack)
{
#ifdef FEAT_JOB_CHANNEL
typval_T dtv;
if (job == NULL || job->jv_copyID == copyID)
@ -5610,7 +5610,6 @@ set_ref_in_item_job(
dtv.vval.v_partial = job->jv_exit_cb.cb_partial;
set_ref_in_item(&dtv, copyID, ht_stack, list_stack);
}
#endif
return FALSE;
}
@ -5626,7 +5625,6 @@ set_ref_in_item_channel(
ht_stack_T **ht_stack,
list_stack_T **list_stack)
{
#ifdef FEAT_JOB_CHANNEL
typval_T dtv;
if (ch == NULL || ch->ch_copyID == copyID)
@ -5665,10 +5663,10 @@ set_ref_in_item_channel(
dtv.vval.v_partial = ch->ch_close_cb.cb_partial;
set_ref_in_item(&dtv, copyID, ht_stack, list_stack);
}
#endif
return FALSE;
}
#endif
/*
* Mark the class "cl" with "copyID".
@ -5770,12 +5768,20 @@ set_ref_in_item(
ht_stack, list_stack);
case VAR_JOB:
#ifdef FEAT_JOB_CHANNEL
return set_ref_in_item_job(tv->vval.v_job, copyID,
ht_stack, list_stack);
#else
break;
#endif
case VAR_CHANNEL:
#ifdef FEAT_JOB_CHANNEL
return set_ref_in_item_channel(tv->vval.v_channel, copyID,
ht_stack, list_stack);
#else
break;
#endif
case VAR_CLASS:
return set_ref_in_item_class(tv->vval.v_class, copyID,

View File

@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1180,
/**/
1179,
/**/