diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2015-12-31 18:36:34 +0100 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2016-03-16 22:41:19 +0800 |
commit | 1dba0d4830786ba17966a8d1397f07557e95bfd5 (patch) | |
tree | 7cf0491bdccd20164e1e3339048e264c7084bf57 | |
parent | da85400e57f2d1af6506fcd263941cd9a1ae3163 (diff) |
add comment FALLTHROUGH which recognize by many lint tools
-rw-r--r-- | atomicio.c | 1 | ||||
-rw-r--r-- | cli-runopts.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -53,6 +53,7 @@ atomicio(f, fd, _s, n) if (errno == EINTR || errno == EAGAIN) #endif continue; + /* FALLTHROUGH */ case 0: return (res); default: diff --git a/cli-runopts.c b/cli-runopts.c index 8d1edee..7c3a50c 100644 --- a/cli-runopts.c +++ b/cli-runopts.c @@ -315,6 +315,7 @@ void cli_getopts(int argc, char ** argv) { break; case 'b': next = &dummy; + /* FALLTHROUGH */ default: fprintf(stderr, "WARNING: Ignoring unknown option -%c\n", c); |