]> granicus.if.org Git - vim/commitdiff
patch 8.0.1399: warnings and errors when building tiny version v8.0.1399
authorBram Moolenaar <Bram@vim.org>
Sun, 17 Dec 2017 13:55:01 +0000 (14:55 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 17 Dec 2017 13:55:01 +0000 (14:55 +0100)
Problem:    Warnings and errors when building tiny version. (Tony Mechelynck)
Solution:   Add #ifdefs.

src/ex_getln.c
src/ops.c
src/version.c

index 405e1f655c0c4ee42d5f236c23148c4edc9deabc..2a2b08ba2e27c9bc048f7466ed9a8a950d0bd42f 100644 (file)
@@ -172,6 +172,7 @@ abandon_cmdline(void)
     redraw_cmdline = TRUE;
 }
 
+#ifdef FEAT_SEARCH_EXTRA
 /*
  * Guess that the pattern matches everything.  Only finds specific cases, such
  * as a trailing \|, which can happen while typing a pattern.
@@ -187,6 +188,7 @@ empty_pattern(char_u *p)
        n -= 2;
     return n == 0 || (n >= 2 && p[n - 2] == '\\' && p[n - 1] == '|');
 }
+#endif
 
 /*
  * getcmdline() - accept a command line starting with firstc.
index 1ecc67714d0ac55774159c630efb9c1a336d487a..cfa0bb367ec25b99a1d72e50ee292d3f72776113 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -1645,6 +1645,7 @@ shift_delete_registers()
     y_regs[1].y_array = NULL;          /* set register one to empty */
 }
 
+#ifdef FEAT_AUTOCMD
     static void
 yank_do_autocmd(oparg_T *oap, yankreg_T *reg)
 {
@@ -1701,6 +1702,7 @@ yank_do_autocmd(oparg_T *oap, yankreg_T *reg)
     dict_free_contents(v_event);
     hash_init(&v_event->dv_hashtab);
 }
+#endif
 
 /*
  * Handle a delete operation.
index 2580b9ecc24befbc0f248a300d9b4f38751e4a43..912e3be336388fe5392e0ba82d3ccec7993431ed 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1399,
 /**/
     1398,
 /**/