summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-19 22:46:34 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-19 22:46:34 +0100
commit1d6fbe654066845ff2a182ed258e6e9d3408fa90 (patch)
tree7300ff3f58090f352c9e56554376588c12c4c104 /src/undo.c
parent132006c3d0f87dbda5f4d5410fcce312e4716f72 (diff)
downloadvim-git-1d6fbe654066845ff2a182ed258e6e9d3408fa90.tar.gz
patch 7.4.1358v7.4.1358
Problem: Compiler warning when not building with +crypt. Solution: Add #ifdef. (John Marriott)
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/undo.c b/src/undo.c
index 7736f54b5..27e221826 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -116,7 +116,9 @@ static void u_freeentry(u_entry_T *, long);
static void corruption_error(char *mesg, char_u *file_name);
static void u_free_uhp(u_header_T *uhp);
static int undo_write(bufinfo_T *bi, char_u *ptr, size_t len);
+# ifdef FEAT_CRYPT
static int undo_flush(bufinfo_T *bi);
+# endif
static int fwrite_crypt(bufinfo_T *bi, char_u *ptr, size_t len);
static int undo_write_bytes(bufinfo_T *bi, long_u nr, int len);
static void put_header_ptr(bufinfo_T *bi, u_header_T *uhp);