summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-05-05 22:51:39 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-05 22:51:39 +0200
commitb7c978154e0816f4dcfae8a06b4ba1bfb7f796f6 (patch)
treed49b6f15f75cddd7040a498caf55a7249a91fdc0 /src/vim9compile.c
parentdc3e2e65c9dddcace4b24f0f364883d7ce448efb (diff)
downloadvim-git-b7c978154e0816f4dcfae8a06b4ba1bfb7f796f6.tar.gz
patch 8.2.2836: build failure without the +quickfix featurev8.2.2836
Problem: Build failure without the +quickfix feature. (John Marriott) Solution: Add #ifdef.
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index ead193f38..a724d1ad9 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -8704,6 +8704,7 @@ compile_redir(char_u *line, exarg_T *eap, cctx_T *cctx)
return compile_exec(line, eap, cctx);
}
+#ifdef FEAT_QUICKFIX
static char_u *
compile_cexpr(char_u *line, exarg_T *eap, cctx_T *cctx)
{
@@ -8731,6 +8732,7 @@ compile_cexpr(char_u *line, exarg_T *eap, cctx_T *cctx)
return p;
}
+#endif
/*
* Add a function to the list of :def functions.
@@ -9296,8 +9298,13 @@ compile_def_function(
case CMD_laddexpr:
case CMD_cgetexpr:
case CMD_lgetexpr:
+#ifdef FEAT_QUICKFIX
ea.arg = p;
line = compile_cexpr(line, &ea, &cctx);
+#else
+ ex_ni(&ea);
+ line = NULL;
+#endif
break;
// TODO: any other commands with an expression argument?