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/message.c | |
parent | 370791465e745354d66696de8cbd15504cf958c0 (diff) |
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/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c index 81c0f47492..17c541f95f 100644 --- a/src/message.c +++ b/src/message.c @@ -876,6 +876,7 @@ internal_error(char *where) siemsg(_(e_internal_error_str), where); } +#if defined(FEAT_EVAL) || defined(PROTO) /* * Like internal_error() but do not call abort(), to avoid tests using * test_unknown() and test_void() causing Vim to exit. @@ -885,6 +886,7 @@ internal_error_no_abort(char *where) { semsg(_(e_internal_error_str), where); } +#endif // emsg3() and emsgn() are in misc2.c to avoid warnings for the prototypes. @@ -894,6 +896,7 @@ emsg_invreg(int name) semsg(_(e_invalid_register_name_str), transchar(name)); } +#if defined(FEAT_EVAL) || defined(PROTO) /* * Give an error message which contains %s for "name[len]". */ @@ -905,6 +908,7 @@ emsg_namelen(char *msg, char_u *name, int len) semsg(msg, copy == NULL ? "NULL" : (char *)copy); vim_free(copy); } +#endif /* * Like msg(), but truncate to a single line if p_shm contains 't', or when |