changeset 1268:968be6f7cff6

add comment FALLTHROUGH which recognize by many lint tools
author Francois Perrad <francois.perrad@gadz.org>
date Thu, 31 Dec 2015 18:36:34 +0100
parents 1f9858bfe03e
children 210f6b49df89
files atomicio.c cli-runopts.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/atomicio.c	Thu Dec 31 18:02:21 2015 +0100
+++ b/atomicio.c	Thu Dec 31 18:36:34 2015 +0100
@@ -53,6 +53,7 @@
 			if (errno == EINTR || errno == EAGAIN)
 #endif
 				continue;
+			/* FALLTHROUGH */
 		case 0:
 			return (res);
 		default:
--- a/cli-runopts.c	Thu Dec 31 18:02:21 2015 +0100
+++ b/cli-runopts.c	Thu Dec 31 18:36:34 2015 +0100
@@ -315,6 +315,7 @@
 					break;
 				case 'b':
 					next = &dummy;
+					/* FALLTHROUGH */
 				default:
 					fprintf(stderr,
 						"WARNING: Ignoring unknown option -%c\n", c);