mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix: address -Wmaybe-uninitialized warnings (#22436)
This commit is contained in:
@@ -2456,7 +2456,7 @@ static bool cmdpreview_may_show(CommandLineState *s)
|
|||||||
CpInfo cpinfo;
|
CpInfo cpinfo;
|
||||||
bool icm_split = *p_icm == 's'; // inccommand=split
|
bool icm_split = *p_icm == 's'; // inccommand=split
|
||||||
buf_T *cmdpreview_buf;
|
buf_T *cmdpreview_buf;
|
||||||
win_T *cmdpreview_win;
|
win_T *cmdpreview_win = NULL;
|
||||||
|
|
||||||
emsg_silent++; // Block error reporting as the command may be incomplete,
|
emsg_silent++; // Block error reporting as the command may be incomplete,
|
||||||
// but still update v:errmsg
|
// but still update v:errmsg
|
||||||
|
@@ -1209,7 +1209,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char *fword, bool soun
|
|||||||
|
|
||||||
// The loop may take an indefinite amount of time. Break out after some
|
// The loop may take an indefinite amount of time. Break out after some
|
||||||
// time.
|
// time.
|
||||||
proftime_T time_limit;
|
proftime_T time_limit = 0;
|
||||||
if (spell_suggest_timeout > 0) {
|
if (spell_suggest_timeout > 0) {
|
||||||
time_limit = profile_setlimit(spell_suggest_timeout);
|
time_limit = profile_setlimit(spell_suggest_timeout);
|
||||||
}
|
}
|
||||||
|
@@ -1899,8 +1899,8 @@ static void win_rotate(bool upwards, int count)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
win_T *wp1;
|
win_T *wp1 = NULL;
|
||||||
win_T *wp2;
|
win_T *wp2 = NULL;
|
||||||
|
|
||||||
while (count--) {
|
while (count--) {
|
||||||
if (upwards) { // first window becomes last window
|
if (upwards) { // first window becomes last window
|
||||||
|
Reference in New Issue
Block a user