comparison src/eval.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 b1a7e3968a31
children 7749260f261c
comparison
equal deleted inserted replaced
12673:2b845e7b9727 12674:e769c912fcd9
6993 { 6993 {
6994 switch (varp->v_type) 6994 switch (varp->v_type)
6995 { 6995 {
6996 case VAR_FUNC: 6996 case VAR_FUNC:
6997 func_unref(varp->vval.v_string); 6997 func_unref(varp->vval.v_string);
6998 /*FALLTHROUGH*/ 6998 /* FALLTHROUGH */
6999 case VAR_STRING: 6999 case VAR_STRING:
7000 vim_free(varp->vval.v_string); 7000 vim_free(varp->vval.v_string);
7001 break; 7001 break;
7002 case VAR_PARTIAL: 7002 case VAR_PARTIAL:
7003 partial_unref(varp->vval.v_partial); 7003 partial_unref(varp->vval.v_partial);
7038 { 7038 {
7039 switch (varp->v_type) 7039 switch (varp->v_type)
7040 { 7040 {
7041 case VAR_FUNC: 7041 case VAR_FUNC:
7042 func_unref(varp->vval.v_string); 7042 func_unref(varp->vval.v_string);
7043 /*FALLTHROUGH*/ 7043 /* FALLTHROUGH */
7044 case VAR_STRING: 7044 case VAR_STRING:
7045 vim_free(varp->vval.v_string); 7045 vim_free(varp->vval.v_string);
7046 varp->vval.v_string = NULL; 7046 varp->vval.v_string = NULL;
7047 break; 7047 break;
7048 case VAR_PARTIAL: 7048 case VAR_PARTIAL: