diff options
author | Toomas Soome <tsoome@me.com> | 2017-07-11 00:49:25 +0300 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2018-02-26 20:42:03 -0500 |
commit | 5ae8bd5389562e74de30aac044ab33ec90e930a5 (patch) | |
tree | f43fdcf10c56fd4bc49ca33625a6c580587047f8 /usr/src/lib/libshell/common/edit/emacs.c | |
parent | 2a898b17c54fe53254413d8d4cac0de440289b59 (diff) | |
download | illumos-joyent-5ae8bd5389562e74de30aac044ab33ec90e930a5.tar.gz |
9165 libshell: this statement may fall through
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/lib/libshell/common/edit/emacs.c')
-rw-r--r-- | usr/src/lib/libshell/common/edit/emacs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/lib/libshell/common/edit/emacs.c b/usr/src/lib/libshell/common/edit/emacs.c index 7a3c39e951..be96eb1af4 100644 --- a/usr/src/lib/libshell/common/edit/emacs.c +++ b/usr/src/lib/libshell/common/edit/emacs.c @@ -355,6 +355,7 @@ int ed_emacsread(void *context, int fd,char *buff,int scend, int reedit) } ep->ed->e_tabcount = 0; } + /* FALLTHROUGH */ do_default_processing: default: @@ -550,6 +551,7 @@ update: case KILLCHAR : cur = 0; oadjust = -1; + /* FALLTHROUGH */ case cntl('K') : if(oadjust >= 0) { @@ -936,6 +938,7 @@ static int escape(register Emacs_t* ep,register genchar *out,int count) /* file name expansion */ case cntl('[') : /* filename completion */ i = '\\'; + /* FALLTHROUGH */ case '*': /* filename expansion */ case '=': /* escape = - list all matching file names */ ep->mark = cur; @@ -1053,6 +1056,7 @@ static int escape(register Emacs_t* ep,register genchar *out,int count) ed_ungetchar(ep->ed,i); } i = '_'; + /* FALLTHROUGH */ default: /* look for user defined macro definitions */ |