mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +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:
@@ -4311,8 +4311,8 @@ static int write_vim_spell(spellinfo_T *spin, char_u *fname)
|
||||
qsort(gap->ga_data, (size_t)gap->ga_len,
|
||||
sizeof(fromto_T), rep_compare);
|
||||
|
||||
int i = round == 1 ? SN_REP : (round == 2 ? SN_SAL : SN_REPSAL);
|
||||
putc(i, fd); // <sectionID>
|
||||
int sect_id = round == 1 ? SN_REP : (round == 2 ? SN_SAL : SN_REPSAL);
|
||||
putc(sect_id, fd); // <sectionID>
|
||||
|
||||
// This is for making suggestions, section is not required.
|
||||
putc(0, fd); // <sectionflags>
|
||||
|
Reference in New Issue
Block a user