mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +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:
@@ -925,11 +925,11 @@ restofline:
|
||||
return QF_FAIL;
|
||||
}
|
||||
if (*fields->errmsg) {
|
||||
size_t len = STRLEN(qfprev->qf_text);
|
||||
size_t textlen = STRLEN(qfprev->qf_text);
|
||||
qfprev->qf_text = xrealloc(qfprev->qf_text,
|
||||
len + STRLEN(fields->errmsg) + 2);
|
||||
qfprev->qf_text[len] = '\n';
|
||||
STRCPY(qfprev->qf_text + len + 1, fields->errmsg);
|
||||
textlen + STRLEN(fields->errmsg) + 2);
|
||||
qfprev->qf_text[textlen] = '\n';
|
||||
STRCPY(qfprev->qf_text + textlen + 1, fields->errmsg);
|
||||
}
|
||||
if (qfprev->qf_nr == -1) {
|
||||
qfprev->qf_nr = fields->enr;
|
||||
|
Reference in New Issue
Block a user