To: vim_dev@googlegroups.com Subject: Patch 9.0.0266 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0266 Problem: Compiler warning for unused argument. Solution: Add UNUSED. Files: src/buffer.c, *** ../vim-9.0.0265/src/buffer.c 2022-08-25 16:02:09.677816456 +0100 --- src/buffer.c 2022-08-25 16:15:52.154709809 +0100 *************** *** 5651,5657 **** * Return TRUE if "buf" is the quickfix buffer. */ int ! bt_quickfix(buf_T *buf) { #ifdef FEAT_QUICKFIX return buf != NULL && buf->b_p_bt[0] == 'q'; --- 5651,5657 ---- * Return TRUE if "buf" is the quickfix buffer. */ int ! bt_quickfix(buf_T *buf UNUSED) { #ifdef FEAT_QUICKFIX return buf != NULL && buf->b_p_bt[0] == 'q'; *************** *** 5664,5670 **** * Return TRUE if "buf" is a terminal buffer. */ int ! bt_terminal(buf_T *buf) { #if defined(FEAT_TERMINAL) return buf != NULL && buf->b_p_bt[0] == 't'; --- 5664,5670 ---- * Return TRUE if "buf" is a terminal buffer. */ int ! bt_terminal(buf_T *buf UNUSED) { #if defined(FEAT_TERMINAL) return buf != NULL && buf->b_p_bt[0] == 't'; *** ../vim-9.0.0265/src/version.c 2022-08-25 16:02:09.681816465 +0100 --- src/version.c 2022-08-25 16:16:24.458722908 +0100 *************** *** 729,730 **** --- 729,732 ---- { /* Add new patch number below this line */ + /**/ + 266, /**/ -- Every person is responsible for the choices he makes. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///