On 08-Oct-2022 01:11, Bram Moolenaar wrote:
Patch 9.0.0683
Problem:    Cannot specify a time for :echowindow.
Solution:   A count can be used to specify the display time. Add
             popup_findecho().
Files:      runtime/doc/eval.txt, runtime/doc/popup.txt,
             runtime/doc/builtin.txt, runtime/doc/usr_41.txt, src/eval.c,
             src/popupwin.c, src/proto/popupwin.pro, src/evalfunc.c,
             src/ex_cmds.h, src/vim9.h, src/vim9compile.c, src/vim9execute.c,
             src/vim9cmds.c, src/proto/vim9cmds.pro, src/vim9instr.c,
             src/proto/vim9instr.pro, src/testdir/test_vim9_disassemble.vim,
             src/testdir/test_messages.vim,
             src/testdir/dumps/Test_echowindow_8.dump,
             src/testdir/dumps/Test_echowindow_9.dump


After this patch mingw64 (gcc 12.2.0) spits out this warning if HAS_MESSAGE_WINDOW is not defined:
<snip>
gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return -fpie -fPIE -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD vim9compile.c -o gobjnative/vim9compile.o vim9compile.c:2691:1: warning: 'get_cmd_count' defined but not used [-Wunused-function]
 2691 | get_cmd_count(char_u *line, exarg_T *eap)
      | ^~~~~~~~~~~~~
</snip>

The attached patch tries to fix 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/a11c12f7-4e5b-5356-2be0-ce6fde1d9c89%40internode.on.net.
--- vim9compile.c.orig  2022-10-08 08:24:06.703862100 +1100
+++ vim9compile.c       2022-10-08 08:34:02.065949600 +1100
@@ -2682,6 +2682,7 @@
     return r;
 }
 
+#ifdef HAS_MESSAGE_WINDOW
 /*
  * Get a count before a command.  Can only be a number.
  * Returns zero if there is no count.
@@ -2707,6 +2708,7 @@
     }
     return atol((char *)p);
 }
+#endif
 
 /*
  * Get the compilation type that should be used for "ufunc".

Raspunde prin e-mail lui