]> granicus.if.org Git - vim/commitdiff
patch 9.0.0266: compiler warning for unused argument v9.0.0266
authorBram Moolenaar <Bram@vim.org>
Thu, 25 Aug 2022 15:16:45 +0000 (16:16 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 25 Aug 2022 15:16:45 +0000 (16:16 +0100)
Problem:    Compiler warning for unused argument.
Solution:   Add UNUSED.

src/buffer.c
src/version.c

index cec2abbb2cd9e43344f19d6803cf13ba46a29ff4..72868528120bb47fc3f801e9a77a174007b5644d 100644 (file)
@@ -5651,7 +5651,7 @@ bt_normal(buf_T *buf)
  * Return TRUE if "buf" is the quickfix buffer.
  */
     int
-bt_quickfix(buf_T *buf)
+bt_quickfix(buf_T *buf UNUSED)
 {
 #ifdef FEAT_QUICKFIX
     return buf != NULL && buf->b_p_bt[0] == 'q';
@@ -5664,7 +5664,7 @@ bt_quickfix(buf_T *buf)
  * Return TRUE if "buf" is a terminal buffer.
  */
     int
-bt_terminal(buf_T *buf)
+bt_terminal(buf_T *buf UNUSED)
 {
 #if defined(FEAT_TERMINAL)
     return buf != NULL && buf->b_p_bt[0] == 't';
index ac14bbd855547ef1595dd14dc33bc4f710597930..50294f85239cd3eafd71510da45b53a12a7fb6fe 100644 (file)
@@ -727,6 +727,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    266,
 /**/
     265,
 /**/