On 22-Apr-2016 3:40 AM, Bram Moolenaar wrote:
Patch 7.4.1768
Problem:    Arguments of setqflist() are not checked properly.
Solution:   Add better checks, add a test. (Nikolai Pavlov, Hirohito Higashi,
             closes #661)
Files:      src/eval.c, src/testdir/test_quickfix.vim


This patch throws a warning (using mingw64) if FEAT_QUICKFIX is disabled, like so:
...
gcc -c -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL -DFEAT_GUI_W32 -DFEAT_CLIPBOAR D -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return -s ex_eval.c -o gobjnative/ex_eval.o eval.c:101:14: warning: 'e_stringreq' defined but not used [-Wunused-variable]
 static char *e_stringreq = N_("E928: String required");
              ^
...

The attached patch fixes it.

Cheers

--
--
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.
--- eval_orig.c	2016-04-22 06:10:22.084529500 +1000
+++ eval.c	2016-04-22 06:32:06.031543200 +1000
@@ -98,7 +98,9 @@
 static char *e_listdictarg = N_("E712: Argument of %s must be a List or Dictionary");
 static char *e_listreq = N_("E714: List required");
 static char *e_dictreq = N_("E715: Dictionary required");
+#ifdef FEAT_QUICKFIX
 static char *e_stringreq = N_("E928: String required");
+#endif
 static char *e_toomanyarg = N_("E118: Too many arguments for function: %s");
 static char *e_dictkey = N_("E716: Key not present in Dictionary: %s");
 static char *e_funcexts = N_("E122: Function %s already exists, add ! to replace it");

Raspunde prin e-mail lui