mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
build: enable -Wshadow
Note about shada.c: - shada_read_next_item_start was intentionally shadowing `unpacked` and `i` because many of the macros (e.g. ADDITIONAL_KEY) implicitly depended on those variable names. - Macros were changed to parameterize `unpacked` (but not `i`). Macros like CLEAR_GA_AND_ERROR_OUT do control-flow (goto), so any other approach is messy.
This commit is contained in:
@@ -2130,9 +2130,9 @@ void ex_listdo(exarg_T *eap)
|
||||
// Remember the number of the next listed buffer, in case
|
||||
// ":bwipe" is used or autocommands do something strange.
|
||||
next_fnum = -1;
|
||||
for (buf_T *buf = curbuf->b_next; buf != NULL; buf = buf->b_next) {
|
||||
if (buf->b_p_bl) {
|
||||
next_fnum = buf->b_fnum;
|
||||
for (buf_T *bp = curbuf->b_next; bp != NULL; bp = bp->b_next) {
|
||||
if (bp->b_p_bl) {
|
||||
next_fnum = bp->b_fnum;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user