]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1180: compiler warnings without the +job feature v9.0.1180
authorBram Moolenaar <Bram@vim.org>
Wed, 11 Jan 2023 19:11:15 +0000 (19:11 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 11 Jan 2023 19:11:15 +0000 (19:11 +0000)
Problem:    Compiler warnings without the +job feature.
Solution:   Adjust #ifdefs. (John Marriott)

src/eval.c
src/version.c

index a6eceff0bec04896e537f8a2ba348ed82d3e496c..2a8b1c52ee5082caa0573e08674837eac86a3cac 100644 (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,
index b16a3f7577718ef66d071353e674d08c65019eb7..5036e070efbd3f0c5fe9f398567644d78a4ebb83 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1180,
 /**/
     1179,
 /**/