summaryrefslogtreecommitdiff
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-12 13:50:31 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-12 13:50:31 +0100
commitec9d3001cf6fb4ffe142d34762c774e0066de6bb (patch)
tree2b164d86e19a7f23376fe7843d30d14030bdbe39 /src/evalfunc.c
parent2b6185287adf53343ed5f49e967ae402c64063e4 (diff)
downloadvim-git-ec9d3001cf6fb4ffe142d34762c774e0066de6bb.tar.gz
patch 8.1.0730: compiler warning for get_buf_arg() unusedv8.1.0730
Problem: Compiler warning for get_buf_arg() unused. Solution: Add #ifdef. (John Marriott)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index a9a92d2ee..3f8e6152c 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -1919,6 +1919,7 @@ tv_get_buf(typval_T *tv, int curtab_only)
return buf;
}
+#ifdef FEAT_SIGNS
/*
* Get the buffer from "arg" and give an error and return NULL if it is not
* valid.
@@ -1935,6 +1936,7 @@ get_buf_arg(typval_T *arg)
EMSG2(_("E158: Invalid buffer name: %s"), tv_get_string(arg));
return buf;
}
+#endif
/*
* "bufname(expr)" function