Problem: Newer gcc warns for implicit fallthrough.
Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
case STL_OFFSET_X:
base = 'X';
+ /* FALLTHROUGH */
case STL_OFFSET:
#ifdef FEAT_BYTEOFF
l = ml_find_line_or_offset(wp->w_buffer, wp->w_cursor.lnum, NULL);
case STL_BYTEVAL_X:
base = 'X';
+ /* FALLTHROUGH */
case STL_BYTEVAL:
num = byteval;
if (num == NL)
case ESC: /* End input mode */
if (echeck_abbr(ESC + ABBR_OFF))
break;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case Ctrl_C: /* End input mode */
#ifdef FEAT_CMDWIN
if (ctrl_x_mode == CTRL_X_DICTIONARY
|| ctrl_x_mode == CTRL_X_THESAURUS)
break;
+ /* FALLTHROUGH */
case '~':
if (!p_magic) /* quote these only if magic is set */
break;
+ /* FALLTHROUGH */
case '\\':
if (ctrl_x_mode == CTRL_X_DICTIONARY
|| ctrl_x_mode == CTRL_X_THESAURUS)
break;
+ /* FALLTHROUGH */
case '^': /* currently it's not needed. */
case '$':
m++;
{
case VAR_FUNC:
func_unref(varp->vval.v_string);
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case VAR_STRING:
vim_free(varp->vval.v_string);
break;
{
case VAR_FUNC:
func_unref(varp->vval.v_string);
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case VAR_STRING:
vim_free(varp->vval.v_string);
varp->vval.v_string = NULL;
case CMD_bunload:
while ((xp->xp_pattern = vim_strchr(arg, ' ')) != NULL)
arg = xp->xp_pattern + 1;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case CMD_buffer:
case CMD_sbuffer:
case CMD_checktime:
break;
goto cmdline_not_changed;
}
- /* FALLTHROUGH */
-
#ifdef FEAT_CMDHIST
+ /* FALLTHROUGH */
case K_UP:
case K_DOWN:
case K_S_UP:
rettv->vval.v_number = SvIV(sv);
break;
}
+ /* FALLTHROUGH */
case SVt_PV: /* string */
{
size_t len = 0;
argv_idx = -1;
break;
}
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case 'S': /* "-S {file}" execute Vim script */
case 'i': /* "-i {viminfo}" use for viminfo */
#ifndef FEAT_DIFF
argv_idx = -1;
break;
}
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case 'W': /* "-W {scriptout}" overwrite script file */
if (scriptout != NULL)
goto scripterror;
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;
cmd_silent = FALSE;
skip_redraw = TRUE; /* skip redraw once */
need_wait_return = FALSE; /* don't wait in main() */
}
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case 'q': /* quit */
case Ctrl_C:
case ESC:
AppendToRedobuff((char_u *)"!\r"); /* use any last used !cmd */
else
bangredo = TRUE; /* do_bang() will put cmd in redo buffer */
+ /* FALLTHROUGH */
case OP_INDENT:
case OP_COLON:
break;
}
undo = TRUE;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case 'g': /* "zg": add good word to word list */
case 'w': /* "zw": add wrong word to word list */
/* "g'm" and "g`m": jump to mark without setting pcmark */
case '\'':
cap->arg = TRUE;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case '`':
nv_gomark(cap);
break;
case 'q':
case 'w':
oap->cursor_start = curwin->w_cursor;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case '~':
case 'u':
case 'U':
* the first column, then it inserts. */
if (curwin->w_cursor.col == 0)
break;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case 'a': /* "a"ppend is like "i"nsert on the next character. */
#ifdef FEAT_VIRTUALEDIT
goto collection;
/* "\_x" is character class plus newline */
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
/*
* Character classes.
case IDENT:
case IDENT + ADD_NL:
testval = TRUE;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case SIDENT:
case SIDENT + ADD_NL:
while (count < maxcount)
case KWORD:
case KWORD + ADD_NL:
testval = TRUE;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case SKWORD:
case SKWORD + ADD_NL:
while (count < maxcount)
case FNAME:
case FNAME + ADD_NL:
testval = TRUE;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case SFNAME:
case SFNAME + ADD_NL:
while (count < maxcount)
case PRINT:
case PRINT + ADD_NL:
testval = TRUE;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case SPRINT:
case SPRINT + ADD_NL:
while (count < maxcount)
case ANYOF:
case ANYOF + ADD_NL:
testval = TRUE;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case ANYBUT:
case ANYBUT + ADD_NL:
goto collection;
/* "\_x" is character class plus newline */
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
/*
* Character classes.
subs = addstate(l, state->out, subs, pim, off_arg);
break;
}
+ /* FALLTHROUGH */
case NFA_MCLOSE1:
case NFA_MCLOSE2:
case NFA_MCLOSE3:
}
PROF_STORE(sp->ts_state)
sp->ts_state = STATE_PLAIN;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case STATE_PLAIN:
/*
}
break;
}
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case STATE_INS_PREP:
if (sp->ts_flags & TSF_DIDDEL)
}
break;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case STATE_INS:
/* Insert one byte. Repeat this for each possible byte at this
*p = p[1];
p[1] = c;
}
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case STATE_SWAP3:
/* Swap two bytes, skipping one: "123" -> "321". We change
p[1] = p[2];
p[2] = c;
}
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case STATE_REP_INI:
/* Check if matching with REP items from the .aff file would work.
PROF_STORE(sp->ts_state)
sp->ts_state = STATE_REP;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case STATE_REP:
/* Try matching with REP items from the .aff file. For each match
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1215,
/**/
1214,
/**/
g_do_tagpreview = Prenum;
else
g_do_tagpreview = p_pvh;
- /*FALLTHROUGH*/
#endif
+ /* FALLTHROUGH */
case ']':
case Ctrl_RSB:
CHECK_CMDWIN
g_do_tagpreview = Prenum;
else
g_do_tagpreview = p_pvh;
- /*FALLTHROUGH*/
#endif
+ /* FALLTHROUGH */
case ']':
case Ctrl_RSB:
/* keep Visual mode, can select words to use as a tag */