mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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:
@@ -2228,7 +2228,7 @@ command_line_scan(mparm_T *parmp)
|
||||
argv_idx = -1;
|
||||
break;
|
||||
}
|
||||
/*FALLTHROUGH*/
|
||||
/* FALLTHROUGH */
|
||||
case 'S': /* "-S {file}" execute Vim script */
|
||||
case 'i': /* "-i {viminfo}" use for viminfo */
|
||||
#ifndef FEAT_DIFF
|
||||
@@ -2386,7 +2386,7 @@ scripterror:
|
||||
argv_idx = -1;
|
||||
break;
|
||||
}
|
||||
/*FALLTHROUGH*/
|
||||
/* FALLTHROUGH */
|
||||
case 'W': /* "-W {scriptout}" overwrite script file */
|
||||
if (scriptout != NULL)
|
||||
goto scripterror;
|
||||
|
Reference in New Issue
Block a user