diff src/ops.c @ 13047:669c4f75a69e v8.0.1399

patch 8.0.1399: warnings and errors when building tiny version commit https://github.com/vim/vim/commit/ee219b0e9faab4b7159ed1725c5b82cea4f4d4f8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 17 14:55:01 2017 +0100 patch 8.0.1399: warnings and errors when building tiny version Problem: Warnings and errors when building tiny version. (Tony Mechelynck) Solution: Add #ifdefs.
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Dec 2017 15:00:05 +0100
parents 6e81a68d63a1
children 50aa6da392ce
line wrap: on
line diff
--- 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 
     dict_free_contents(v_event);
     hash_init(&v_event->dv_hashtab);
 }
+#endif
 
 /*
  * Handle a delete operation.