changeset 15444:b6224857db6f v8.1.0730

patch 8.1.0730: compiler warning for get_buf_arg() unused commit https://github.com/vim/vim/commit/ec9d3001cf6fb4ffe142d34762c774e0066de6bb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 12 13:50:31 2019 +0100 patch 8.1.0730: compiler warning for get_buf_arg() unused Problem: Compiler warning for get_buf_arg() unused. Solution: Add #ifdef. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Jan 2019 14:00:04 +0100
parents c36361e6f206
children 13cc832665ed
files src/evalfunc.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/src/version.c
+++ b/src/version.c
@@ -796,6 +796,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    730,
+/**/
     729,
 /**/
     728,