Mercurial > vim
comparison src/ex_docmd.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 | d03798bddf5e |
children | 9b882316aa63 |
comparison
equal
deleted
inserted
replaced
12673:2b845e7b9727 | 12674:e769c912fcd9 |
---|---|
4113 case CMD_bdelete: | 4113 case CMD_bdelete: |
4114 case CMD_bwipeout: | 4114 case CMD_bwipeout: |
4115 case CMD_bunload: | 4115 case CMD_bunload: |
4116 while ((xp->xp_pattern = vim_strchr(arg, ' ')) != NULL) | 4116 while ((xp->xp_pattern = vim_strchr(arg, ' ')) != NULL) |
4117 arg = xp->xp_pattern + 1; | 4117 arg = xp->xp_pattern + 1; |
4118 /*FALLTHROUGH*/ | 4118 /* FALLTHROUGH */ |
4119 case CMD_buffer: | 4119 case CMD_buffer: |
4120 case CMD_sbuffer: | 4120 case CMD_sbuffer: |
4121 case CMD_checktime: | 4121 case CMD_checktime: |
4122 xp->xp_context = EXPAND_BUFFERS; | 4122 xp->xp_context = EXPAND_BUFFERS; |
4123 xp->xp_pattern = arg; | 4123 xp->xp_pattern = arg; |