If FEAT_CRYPT is not defined I get the following warning (on Mingw64):

gcc -c -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL -DMS_WIN64 -DFEAT_DIRECTX -DDYNAMIC_DIRECTX -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -pipe -march=x86-64 -Wall -O3 -fomit-frame-pointer -freg-struct-return -s undo.c -o gobjx86-64/undo.o undo.c:119:12: warning: 'undo_flush' declared 'static' but never defined [-Wunused-function]
 static int undo_flush(bufinfo_T *bi);


Attached patch removes the warning, but the declaration of undo_flush() is inside an ifdef FEAT_PERSISTENT_UNDO block and I'm not certain that is the right solution.



--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
*** undo_orig.c	2016-01-31 07:14:25.726094500 +1100
--- undo.c	2016-02-20 06:43:35.212809700 +1100
***************
*** 116,122 ****
--- 116,124 ----
  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);

Raspunde prin e-mail lui