Mercurial > vim
diff 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 |
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';