]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.0730: compiler warning for get_buf_arg() unused v8.1.0730
authorBram Moolenaar <Bram@vim.org>
Sat, 12 Jan 2019 12:50:31 +0000 (13:50 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 Jan 2019 12:50:31 +0000 (13:50 +0100)
Problem:    Compiler warning for get_buf_arg() unused.
Solution:   Add #ifdef. (John Marriott)

src/evalfunc.c
src/version.c

index a9a92d2ee30fe463c73862cbe0884ed9b4938d25..3f8e6152c531c2945461d0d6c556aa5889eaa17b 100644 (file)
@@ -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
index 118a867e563aab2f54759277704bbb2a603c574b..7aeaa486903d4f851f98df98df95fb04ce4601f3 100644 (file)
@@ -795,6 +795,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    730,
 /**/
     729,
 /**/