Skip to content
Snippets Groups Projects
Commit 1dba0d48 authored by Francois Perrad's avatar Francois Perrad Committed by Matt Johnston
Browse files

add comment FALLTHROUGH which recognize by many lint tools

parent da85400e
Branches
Tags
No related merge requests found
...@@ -53,6 +53,7 @@ atomicio(f, fd, _s, n) ...@@ -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:
......
...@@ -315,6 +315,7 @@ void cli_getopts(int argc, char ** argv) { ...@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment