On 05-Nov-2016 06:09, Bram Moolenaar wrote:
Patch 8.0.0058
Problem:    Positioning of the popup menu is not good.
Solution:   Position it better. (Hirohito Higashi)
Files:      src/popupmnu.c



Hi All,

This patch throws this warning without FEAT_QUICKFIX (on mingw 64):
gcc -c -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return -s popupmnu.c -o gobjnative/popupmnu.o
popupmnu.c: In function 'pum_display':
popupmnu.c:63:12: warning: unused variable 'pvwin' [-Wunused-variable]
     win_T *pvwin;
            ^~~~~
The attached patched fixes it.

Cheers
John

--
--
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--- popupmnu.c	2016-11-05 06:46:25.074637100 +1100
+++ popupmnu.c.new	2016-11-05 06:54:37.419169000 +1100
@@ -60,7 +60,9 @@
     int		above_row;
     int		below_row;
     int		redo_count = 0;
+#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
     win_T	*pvwin;
+#endif
 
 redo:
     def_width = PUM_DEF_WIDTH;

Raspunde prin e-mail lui