comparison src/main.c @ 12674:e769c912fcd9 v8.0.1215

patch 8.0.1215: newer gcc warns for implicit fallthrough commit https://github.com/vim/vim/commit/2f40d129bf45cd35976e4120336ae6d504f5a5dd Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 24 21:49:36 2017 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Tue, 24 Oct 2017 22:00:06 +0200
parents d348256f04d1
children 116b7394b8af
comparison
equal deleted inserted replaced
12673:2b845e7b9727 12674:e769c912fcd9
2226 parmp->commands[parmp->n_commands++] = (char_u *)argv[0] 2226 parmp->commands[parmp->n_commands++] = (char_u *)argv[0]
2227 + argv_idx; 2227 + argv_idx;
2228 argv_idx = -1; 2228 argv_idx = -1;
2229 break; 2229 break;
2230 } 2230 }
2231 /*FALLTHROUGH*/ 2231 /* FALLTHROUGH */
2232 case 'S': /* "-S {file}" execute Vim script */ 2232 case 'S': /* "-S {file}" execute Vim script */
2233 case 'i': /* "-i {viminfo}" use for viminfo */ 2233 case 'i': /* "-i {viminfo}" use for viminfo */
2234 #ifndef FEAT_DIFF 2234 #ifndef FEAT_DIFF
2235 case 'd': /* "-d {device}" device (for Amiga) */ 2235 case 'd': /* "-d {device}" device (for Amiga) */
2236 #endif 2236 #endif
2384 n = get_number_arg((char_u *)argv[0], &argv_idx, 10); 2384 n = get_number_arg((char_u *)argv[0], &argv_idx, 10);
2385 set_option_value((char_u *)"window", n, NULL, 0); 2385 set_option_value((char_u *)"window", n, NULL, 0);
2386 argv_idx = -1; 2386 argv_idx = -1;
2387 break; 2387 break;
2388 } 2388 }
2389 /*FALLTHROUGH*/ 2389 /* FALLTHROUGH */
2390 case 'W': /* "-W {scriptout}" overwrite script file */ 2390 case 'W': /* "-W {scriptout}" overwrite script file */
2391 if (scriptout != NULL) 2391 if (scriptout != NULL)
2392 goto scripterror; 2392 goto scripterror;
2393 if ((scriptout = mch_fopen(argv[0], 2393 if ((scriptout = mch_fopen(argv[0],
2394 c == 'w' ? APPENDBIN : WRITEBIN)) == NULL) 2394 c == 'w' ? APPENDBIN : WRITEBIN)) == NULL)