mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge #9146 from justinmk/fix-warnings
This commit is contained in:
@@ -16461,6 +16461,7 @@ static void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv,
|
||||
bool retlist)
|
||||
{
|
||||
proftime_T wait_time;
|
||||
bool profiling = do_profiling == PROF_YES;
|
||||
|
||||
rettv->v_type = VAR_STRING;
|
||||
rettv->vval.v_string = NULL;
|
||||
@@ -16497,7 +16498,7 @@ static void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv,
|
||||
xfree(cmdstr);
|
||||
}
|
||||
|
||||
if (do_profiling == PROF_YES) {
|
||||
if (profiling) {
|
||||
prof_child_enter(&wait_time);
|
||||
}
|
||||
|
||||
@@ -16506,7 +16507,7 @@ static void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv,
|
||||
char *res = NULL;
|
||||
int status = os_system(argv, input, input_len, &res, &nread);
|
||||
|
||||
if (do_profiling == PROF_YES) {
|
||||
if (profiling) {
|
||||
prof_child_exit(&wait_time);
|
||||
}
|
||||
|
||||
|
||||
@@ -741,6 +741,7 @@ typval_encode_stop_converting_one_item:
|
||||
case kMPConvPartial: {
|
||||
partial_T *const pt = cur_mpsv->data.p.pt;
|
||||
tv = cur_mpsv->tv;
|
||||
(void)tv;
|
||||
switch (cur_mpsv->data.p.stage) {
|
||||
case kMPConvPartialArgs: {
|
||||
TYPVAL_ENCODE_CONV_FUNC_BEFORE_ARGS(tv,
|
||||
|
||||
@@ -3299,7 +3299,7 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout,
|
||||
endcolumn = (curwin->w_curswant == MAXCOL);
|
||||
}
|
||||
|
||||
if (sub_joining_lines(eap, pat, sub, cmd, !preview)) {
|
||||
if (sub != NULL && sub_joining_lines(eap, pat, sub, cmd, !preview)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -10048,6 +10048,7 @@ bool cmd_can_preview(char_u *cmd)
|
||||
}
|
||||
|
||||
exarg_T ea;
|
||||
memset(&ea, 0, sizeof(ea));
|
||||
// parse the command line
|
||||
ea.cmd = skip_range(cmd, NULL);
|
||||
if (*ea.cmd == '*') {
|
||||
|
||||
@@ -1475,11 +1475,13 @@ void msg_prt_line(char_u *s, int list)
|
||||
|
||||
while (!got_int) {
|
||||
if (n_extra > 0) {
|
||||
--n_extra;
|
||||
if (c_extra)
|
||||
n_extra--;
|
||||
if (c_extra) {
|
||||
c = c_extra;
|
||||
else
|
||||
} else {
|
||||
assert(p_extra != NULL);
|
||||
c = *p_extra++;
|
||||
}
|
||||
} else if ((l = utfc_ptr2len(s)) > 1) {
|
||||
col += utf_ptr2cells(s);
|
||||
char buf[MB_MAXBYTES + 1];
|
||||
|
||||
@@ -4492,6 +4492,7 @@ static int qf_set_properties(qf_info_T *qi, dict_T *what, int action,
|
||||
}
|
||||
if ((di = tv_dict_find(what, S_LEN("items"))) != NULL) {
|
||||
if (di->di_tv.v_type == VAR_LIST) {
|
||||
assert(qi->qf_lists[qf_idx].qf_title != NULL);
|
||||
char_u *title_save = vim_strsave(qi->qf_lists[qf_idx].qf_title);
|
||||
|
||||
retval = qf_add_entries(qi, qf_idx, di->di_tv.vval.v_list,
|
||||
|
||||
@@ -2175,11 +2175,11 @@ win_line (
|
||||
|
||||
int n_skip = 0; /* nr of chars to skip for 'nowrap' */
|
||||
|
||||
int fromcol, tocol; /* start/end of inverting */
|
||||
int fromcol_prev = -2; /* start of inverting after cursor */
|
||||
int noinvcur = FALSE; /* don't invert the cursor */
|
||||
pos_T *top, *bot;
|
||||
int lnum_in_visual_area = FALSE;
|
||||
int fromcol = 0, tocol = 0; // start/end of inverting
|
||||
int fromcol_prev = -2; // start of inverting after cursor
|
||||
int noinvcur = false; // don't invert the cursor
|
||||
pos_T *top, *bot;
|
||||
int lnum_in_visual_area = false;
|
||||
pos_T pos;
|
||||
long v;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user