vim-patch:8.2.2767: compiler warning for unused argument

Problem:    Compiler warning for unused argument.
Solution:   Remove the argument.

bd6406f15d

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq 2023-02-28 13:39:59 +08:00
parent c554e98978
commit 1f1227f12b
2 changed files with 2 additions and 2 deletions

View File

@ -1498,7 +1498,7 @@ char *get_lval(char *const name, typval_T *const rettv, lval_T *const lp, const
tv_clear(&var1); tv_clear(&var1);
const int bloblen = tv_blob_len(lp->ll_tv->vval.v_blob); const int bloblen = tv_blob_len(lp->ll_tv->vval.v_blob);
if (tv_blob_check_index(bloblen, lp->ll_n1, lp->ll_range, quiet) == FAIL) { if (tv_blob_check_index(bloblen, lp->ll_n1, quiet) == FAIL) {
tv_clear(&var2); tv_clear(&var2);
return NULL; return NULL;
} }

View File

@ -2711,7 +2711,7 @@ bool tv_blob_equal(const blob_T *const b1, const blob_T *const b2)
} }
/// Check if "n1" is a valid index for a blob with length "bloblen". /// Check if "n1" is a valid index for a blob with length "bloblen".
int tv_blob_check_index(int bloblen, varnumber_T n1, int is_range, bool quiet) int tv_blob_check_index(int bloblen, varnumber_T n1, bool quiet)
{ {
if (n1 < 0 || n1 > bloblen) { if (n1 < 0 || n1 > bloblen) {
if (!quiet) { if (!quiet) {