changeset 29855:6bddfc49c35b v9.0.0266

patch 9.0.0266: compiler warning for unused argument Commit: https://github.com/vim/vim/commit/340dafd155222ac96304107542344faf3c56e12b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 25 16:16:45 2022 +0100 patch 9.0.0266: compiler warning for unused argument Problem: Compiler warning for unused argument. Solution: Add UNUSED.
author Bram Moolenaar <Bram@vim.org>
date Thu, 25 Aug 2022 17:30:04 +0200
parents 57eb4648003b
children 49eb60a90554
files src/buffer.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -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';
--- a/src/version.c
+++ b/src/version.c
@@ -728,6 +728,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    266,
+/**/
     265,
 /**/
     264,