comparison src/buffer.c @ 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 31c598083364
children 6eaef7375f17
comparison
equal deleted inserted replaced
29854:57eb4648003b 29855:6bddfc49c35b
5649 5649
5650 /* 5650 /*
5651 * Return TRUE if "buf" is the quickfix buffer. 5651 * Return TRUE if "buf" is the quickfix buffer.
5652 */ 5652 */
5653 int 5653 int
5654 bt_quickfix(buf_T *buf) 5654 bt_quickfix(buf_T *buf UNUSED)
5655 { 5655 {
5656 #ifdef FEAT_QUICKFIX 5656 #ifdef FEAT_QUICKFIX
5657 return buf != NULL && buf->b_p_bt[0] == 'q'; 5657 return buf != NULL && buf->b_p_bt[0] == 'q';
5658 #else 5658 #else
5659 return FALSE; 5659 return FALSE;
5662 5662
5663 /* 5663 /*
5664 * Return TRUE if "buf" is a terminal buffer. 5664 * Return TRUE if "buf" is a terminal buffer.
5665 */ 5665 */
5666 int 5666 int
5667 bt_terminal(buf_T *buf) 5667 bt_terminal(buf_T *buf UNUSED)
5668 { 5668 {
5669 #if defined(FEAT_TERMINAL) 5669 #if defined(FEAT_TERMINAL)
5670 return buf != NULL && buf->b_p_bt[0] == 't'; 5670 return buf != NULL && buf->b_p_bt[0] == 't';
5671 #else 5671 #else
5672 return FALSE; 5672 return FALSE;