summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorDominique Pelle <dominique.pelle@gmail.com>2022-01-08 12:41:16 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-08 12:41:16 +0000
commit748b308eebe8d8860888eb27da08333f175d547d (patch)
treedcb524e3faab88b0238bd892cdfa2870252c7e51 /src/misc1.c
parent370791465e745354d66696de8cbd15504cf958c0 (diff)
downloadvim-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/misc1.c')
-rw-r--r--src/misc1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 31cc63b15..e43d00156 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -1896,7 +1896,6 @@ vim_unsetenv(char_u *var)
vim_setenv(var, (char_u *)"");
#endif
}
-#endif
/*
@@ -1914,6 +1913,7 @@ vim_setenv_ext(char_u *name, char_u *val)
&& STRICMP(name, "VIMRUNTIME") == 0)
didset_vimruntime = FALSE;
}
+#endif
/*
* Our portable version of setenv.
@@ -2230,6 +2230,7 @@ fast_breakcheck(void)
}
}
+# if defined(FEAT_SPELL) || defined(PROTO)
/*
* Like line_breakcheck() but check 100 times less often.
*/
@@ -2242,6 +2243,7 @@ veryfast_breakcheck(void)
ui_breakcheck();
}
}
+#endif
#if defined(VIM_BACKTICK) || defined(FEAT_EVAL) \
|| (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \