Mercurial > vim
comparison src/if_perl.xs @ 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 | be0a855f9fc3 |
children | 615572809435 |
comparison
equal
deleted
inserted
replaced
12673:2b845e7b9727 | 12674:e769c912fcd9 |
---|---|
1099 case SVt_IV: /* integer */ | 1099 case SVt_IV: /* integer */ |
1100 if (!SvROK(sv)) { /* references should be string */ | 1100 if (!SvROK(sv)) { /* references should be string */ |
1101 rettv->vval.v_number = SvIV(sv); | 1101 rettv->vval.v_number = SvIV(sv); |
1102 break; | 1102 break; |
1103 } | 1103 } |
1104 /* FALLTHROUGH */ | |
1104 case SVt_PV: /* string */ | 1105 case SVt_PV: /* string */ |
1105 { | 1106 { |
1106 size_t len = 0; | 1107 size_t len = 0; |
1107 char * str_from = SvPV(sv, len); | 1108 char * str_from = SvPV(sv, len); |
1108 char_u *str_to = (char_u*)alloc( | 1109 char_u *str_to = (char_u*)alloc( |