Patch 9.0.0266

4 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 25, 2022, 11:17:21 AM8/25/22
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages