mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08: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:
@@ -781,7 +781,6 @@ static void command_line_scan(mparm_T *parmp)
|
||||
bool had_minmin = false; // found "--" argument
|
||||
int want_argument; // option argument with argument
|
||||
int c;
|
||||
char_u *p = NULL;
|
||||
long n;
|
||||
|
||||
argc--;
|
||||
@@ -1227,7 +1226,7 @@ scripterror:
|
||||
|
||||
// Add the file to the global argument list.
|
||||
ga_grow(&global_alist.al_ga, 1);
|
||||
p = vim_strsave((char_u *)argv[0]);
|
||||
char_u *p = vim_strsave((char_u *)argv[0]);
|
||||
|
||||
if (parmp->diff_mode && os_isdir(p) && GARGCOUNT > 0
|
||||
&& !os_isdir(alist_name(&GARGLIST[0]))) {
|
||||
|
Reference in New Issue
Block a user