add comment FALLTHROUGH which recognize by many lint tools

This commit is contained in:
Francois Perrad 2015-12-31 18:36:34 +01:00 committed by Matt Johnston
parent da85400e57
commit 1dba0d4830
2 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ atomicio(f, fd, _s, n)
if (errno == EINTR || errno == EAGAIN) if (errno == EINTR || errno == EAGAIN)
#endif #endif
continue; continue;
/* FALLTHROUGH */
case 0: case 0:
return (res); return (res);
default: default:

View File

@ -315,6 +315,7 @@ void cli_getopts(int argc, char ** argv) {
break; break;
case 'b': case 'b':
next = &dummy; next = &dummy;
/* FALLTHROUGH */
default: default:
fprintf(stderr, fprintf(stderr,
"WARNING: Ignoring unknown option -%c\n", c); "WARNING: Ignoring unknown option -%c\n", c);