]> granicus.if.org Git - vim/commitdiff
patch 9.0.1094: compiler warning when HAS_MESSAGE_WINDOW is not defined v9.0.1094
authorBram Moolenaar <Bram@vim.org>
Sun, 25 Dec 2022 15:59:25 +0000 (15:59 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 25 Dec 2022 15:59:25 +0000 (15:59 +0000)
Problem:    Compiler warning when HAS_MESSAGE_WINDOW is not defined.
Solution:   Add UNUSED.

src/version.c
src/vim9cmds.c

index 5c21f7a9f236a0bcf3e6622b94479ed1d38366a5..95d2a6b6abd49ac1f305be13c330795a44829bfb 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1094,
 /**/
     1093,
 /**/
index 4fbae4fbd632ecbea546e29d60b79c2f40828e24..5aa783e82415712f6c6380c1276ac7d2af70dbce 100644 (file)
@@ -1973,7 +1973,11 @@ compile_defer(char_u *arg_start, cctx_T *cctx)
  * compile "execute expr"
  */
     char_u *
-compile_mult_expr(char_u *arg, int cmdidx, long cmd_count, cctx_T *cctx)
+compile_mult_expr(
+       char_u  *arg,
+       int     cmdidx,
+       long    cmd_count UNUSED,
+       cctx_T  *cctx)
 {
     char_u     *p = arg;
     char_u     *prev = arg;