diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2022-01-08 12:41:16 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-08 12:41:16 +0000 |
commit | 748b308eebe8d8860888eb27da08333f175d547d (patch) | |
tree | dcb524e3faab88b0238bd892cdfa2870252c7e51 /src/typval.c | |
parent | 370791465e745354d66696de8cbd15504cf958c0 (diff) | |
download | vim-git-748b308eebe8d8860888eb27da08333f175d547d.tar.gz |
patch 8.2.4038: various code not used when features are disabledv8.2.4038
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
Diffstat (limited to 'src/typval.c')
-rw-r--r-- | src/typval.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/typval.c b/src/typval.c index 23ce7124a..eb0ef77b7 100644 --- a/src/typval.c +++ b/src/typval.c @@ -528,6 +528,7 @@ check_for_opt_dict_arg(typval_T *args, int idx) || check_for_dict_arg(args, idx) != FAIL); } +#if defined(FEAT_JOB_CHANNEL) || defined(PROTO) /* * Give an error and return FAIL unless "args[idx]" is a channel or a job. */ @@ -576,6 +577,7 @@ check_for_opt_job_arg(typval_T *args, int idx) return (args[idx].v_type == VAR_UNKNOWN || check_for_job_arg(args, idx) != FAIL); } +#endif /* * Give an error and return FAIL unless "args[idx]" is a string or @@ -642,6 +644,7 @@ check_for_opt_lnum_arg(typval_T *args, int idx) || check_for_lnum_arg(args, idx)); } +#if defined(FEAT_JOB_CHANNEL) || defined(PROTO) /* * Give an error and return FAIL unless "args[idx]" is a string or a blob. */ @@ -655,6 +658,7 @@ check_for_string_or_blob_arg(typval_T *args, int idx) } return OK; } +#endif /* * Give an error and return FAIL unless "args[idx]" is a string or a list. |