forked from aniani/vim
patch 8.0.1215: newer gcc warns for implicit fallthrough
Problem: Newer gcc warns for implicit fallthrough. Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
This commit is contained in:
parent
4f1982800f
commit
2f40d129bf
@ -4325,6 +4325,7 @@ build_stl_str_hl(
|
|||||||
|
|
||||||
case STL_OFFSET_X:
|
case STL_OFFSET_X:
|
||||||
base = 'X';
|
base = 'X';
|
||||||
|
/* FALLTHROUGH */
|
||||||
case STL_OFFSET:
|
case STL_OFFSET:
|
||||||
#ifdef FEAT_BYTEOFF
|
#ifdef FEAT_BYTEOFF
|
||||||
l = ml_find_line_or_offset(wp->w_buffer, wp->w_cursor.lnum, NULL);
|
l = ml_find_line_or_offset(wp->w_buffer, wp->w_cursor.lnum, NULL);
|
||||||
@ -4336,6 +4337,7 @@ build_stl_str_hl(
|
|||||||
|
|
||||||
case STL_BYTEVAL_X:
|
case STL_BYTEVAL_X:
|
||||||
base = 'X';
|
base = 'X';
|
||||||
|
/* FALLTHROUGH */
|
||||||
case STL_BYTEVAL:
|
case STL_BYTEVAL:
|
||||||
num = byteval;
|
num = byteval;
|
||||||
if (num == NL)
|
if (num == NL)
|
||||||
|
@ -5774,13 +5774,16 @@ quote_meta(char_u *dest, char_u *src, int len)
|
|||||||
if (ctrl_x_mode == CTRL_X_DICTIONARY
|
if (ctrl_x_mode == CTRL_X_DICTIONARY
|
||||||
|| ctrl_x_mode == CTRL_X_THESAURUS)
|
|| ctrl_x_mode == CTRL_X_THESAURUS)
|
||||||
break;
|
break;
|
||||||
|
/* FALLTHROUGH */
|
||||||
case '~':
|
case '~':
|
||||||
if (!p_magic) /* quote these only if magic is set */
|
if (!p_magic) /* quote these only if magic is set */
|
||||||
break;
|
break;
|
||||||
|
/* FALLTHROUGH */
|
||||||
case '\\':
|
case '\\':
|
||||||
if (ctrl_x_mode == CTRL_X_DICTIONARY
|
if (ctrl_x_mode == CTRL_X_DICTIONARY
|
||||||
|| ctrl_x_mode == CTRL_X_THESAURUS)
|
|| ctrl_x_mode == CTRL_X_THESAURUS)
|
||||||
break;
|
break;
|
||||||
|
/* FALLTHROUGH */
|
||||||
case '^': /* currently it's not needed. */
|
case '^': /* currently it's not needed. */
|
||||||
case '$':
|
case '$':
|
||||||
m++;
|
m++;
|
||||||
|
@ -1563,9 +1563,8 @@ getcmdline(
|
|||||||
break;
|
break;
|
||||||
goto cmdline_not_changed;
|
goto cmdline_not_changed;
|
||||||
}
|
}
|
||||||
/* FALLTHROUGH */
|
|
||||||
|
|
||||||
#ifdef FEAT_CMDHIST
|
#ifdef FEAT_CMDHIST
|
||||||
|
/* FALLTHROUGH */
|
||||||
case K_UP:
|
case K_UP:
|
||||||
case K_DOWN:
|
case K_DOWN:
|
||||||
case K_S_UP:
|
case K_S_UP:
|
||||||
|
@ -1101,6 +1101,7 @@ perl_to_vim(SV *sv, typval_T *rettv)
|
|||||||
rettv->vval.v_number = SvIV(sv);
|
rettv->vval.v_number = SvIV(sv);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
/* FALLTHROUGH */
|
||||||
case SVt_PV: /* string */
|
case SVt_PV: /* string */
|
||||||
{
|
{
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
|
@ -670,7 +670,8 @@ emsg(char_u *s)
|
|||||||
|
|
||||||
ex_exitval = 1;
|
ex_exitval = 1;
|
||||||
|
|
||||||
/* Reset msg_silent, an error causes messages to be switched back on. */
|
/* Reset msg_silent, an error causes messages to be switched back on.
|
||||||
|
*/
|
||||||
msg_silent = 0;
|
msg_silent = 0;
|
||||||
cmd_silent = FALSE;
|
cmd_silent = FALSE;
|
||||||
|
|
||||||
|
@ -1945,6 +1945,7 @@ do_pending_operator(cmdarg_T *cap, int old_col, int gui_yank)
|
|||||||
AppendToRedobuff((char_u *)"!\r"); /* use any last used !cmd */
|
AppendToRedobuff((char_u *)"!\r"); /* use any last used !cmd */
|
||||||
else
|
else
|
||||||
bangredo = TRUE; /* do_bang() will put cmd in redo buffer */
|
bangredo = TRUE; /* do_bang() will put cmd in redo buffer */
|
||||||
|
/* FALLTHROUGH */
|
||||||
|
|
||||||
case OP_INDENT:
|
case OP_INDENT:
|
||||||
case OP_COLON:
|
case OP_COLON:
|
||||||
|
@ -4698,6 +4698,7 @@ skip_add:
|
|||||||
subs = addstate(l, state->out, subs, pim, off_arg);
|
subs = addstate(l, state->out, subs, pim, off_arg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
/* FALLTHROUGH */
|
||||||
case NFA_MCLOSE1:
|
case NFA_MCLOSE1:
|
||||||
case NFA_MCLOSE2:
|
case NFA_MCLOSE2:
|
||||||
case NFA_MCLOSE3:
|
case NFA_MCLOSE3:
|
||||||
|
@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1215,
|
||||||
/**/
|
/**/
|
||||||
1214,
|
1214,
|
||||||
/**/
|
/**/
|
||||||
|
@ -433,8 +433,8 @@ newwindow:
|
|||||||
g_do_tagpreview = Prenum;
|
g_do_tagpreview = Prenum;
|
||||||
else
|
else
|
||||||
g_do_tagpreview = p_pvh;
|
g_do_tagpreview = p_pvh;
|
||||||
/*FALLTHROUGH*/
|
|
||||||
#endif
|
#endif
|
||||||
|
/* FALLTHROUGH */
|
||||||
case ']':
|
case ']':
|
||||||
case Ctrl_RSB:
|
case Ctrl_RSB:
|
||||||
CHECK_CMDWIN
|
CHECK_CMDWIN
|
||||||
@ -557,8 +557,8 @@ wingotofile:
|
|||||||
g_do_tagpreview = Prenum;
|
g_do_tagpreview = Prenum;
|
||||||
else
|
else
|
||||||
g_do_tagpreview = p_pvh;
|
g_do_tagpreview = p_pvh;
|
||||||
/*FALLTHROUGH*/
|
|
||||||
#endif
|
#endif
|
||||||
|
/* FALLTHROUGH */
|
||||||
case ']':
|
case ']':
|
||||||
case Ctrl_RSB:
|
case Ctrl_RSB:
|
||||||
/* keep Visual mode, can select words to use as a tag */
|
/* keep Visual mode, can select words to use as a tag */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user