mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
vim-patch:8.0.1569: warning for uninitialized variable from gcc
Problem: Warning for uninitialized variable from gcc.
Solution: Initialize the variable.
28ada699c1
This commit is contained in:
@@ -3652,7 +3652,7 @@ void ex_cfile(exarg_T *eap)
|
|||||||
if (res >= 0 && qi != NULL) {
|
if (res >= 0 && qi != NULL) {
|
||||||
qf_list_changed(qi, qi->qf_curlist);
|
qf_list_changed(qi, qi->qf_curlist);
|
||||||
}
|
}
|
||||||
unsigned save_qfid;
|
unsigned save_qfid = 0;
|
||||||
if (qi != NULL)
|
if (qi != NULL)
|
||||||
save_qfid = qi->qf_lists[qi->qf_curlist].qf_id;
|
save_qfid = qi->qf_lists[qi->qf_curlist].qf_id;
|
||||||
if (au_name != NULL) {
|
if (au_name != NULL) {
|
||||||
@@ -3685,7 +3685,6 @@ void ex_vimgrep(exarg_T *eap)
|
|||||||
int fi;
|
int fi;
|
||||||
qf_info_T *qi = &ql_info;
|
qf_info_T *qi = &ql_info;
|
||||||
int loclist_cmd = false;
|
int loclist_cmd = false;
|
||||||
unsigned save_qfid;
|
|
||||||
qfline_T *cur_qf_start;
|
qfline_T *cur_qf_start;
|
||||||
win_T *wp;
|
win_T *wp;
|
||||||
long lnum;
|
long lnum;
|
||||||
@@ -3793,7 +3792,7 @@ void ex_vimgrep(exarg_T *eap)
|
|||||||
|
|
||||||
// Remember the current values of the quickfix list and qf_start, so that
|
// Remember the current values of the quickfix list and qf_start, so that
|
||||||
// we can check for autocommands changing the current quickfix list.
|
// we can check for autocommands changing the current quickfix list.
|
||||||
save_qfid = qi->qf_lists[qi->qf_curlist].qf_id;
|
unsigned save_qfid = qi->qf_lists[qi->qf_curlist].qf_id;
|
||||||
cur_qf_start = qi->qf_lists[qi->qf_curlist].qf_start;
|
cur_qf_start = qi->qf_lists[qi->qf_curlist].qf_start;
|
||||||
|
|
||||||
seconds = (time_t)0;
|
seconds = (time_t)0;
|
||||||
|
Reference in New Issue
Block a user