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)
#endif
continue;
/* FALLTHROUGH */
case 0:
return (res);
default:

View File

@ -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);