From b711df127690046522dfa24aecd9b91223cc4d77 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Mon, 19 Jun 2017 19:41:27 +0300 Subject: 9068 libgen: this statement may fall through Reviewed by: Andy Fiddaman Reviewed by: Yuri Pankov Approved by: Hans Rosenfeld --- usr/src/lib/libgen/common/gmatch.c | 5 ++--- usr/src/lib/libgen/common/reg_compile.c | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/usr/src/lib/libgen/common/gmatch.c b/usr/src/lib/libgen/common/gmatch.c index 3f906f6a4a..58620dfe96 100644 --- a/usr/src/lib/libgen/common/gmatch.c +++ b/usr/src/lib/libgen/common/gmatch.c @@ -27,8 +27,6 @@ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include #include #include @@ -129,11 +127,12 @@ gmatch(const char *s, const char *p) case '\\': /* skip to quoted character and see if it matches */ Popwchar(p, c); + /* FALLTHROUGH */ default: if (c != scc) return (0); - /*FALLTHRU*/ + /* FALLTHROUGH */ case '?': return (scc > 0 ? gmatch(s, p) : 0); diff --git a/usr/src/lib/libgen/common/reg_compile.c b/usr/src/lib/libgen/common/reg_compile.c index 03b52e3e70..4c33f51322 100644 --- a/usr/src/lib/libgen/common/reg_compile.c +++ b/usr/src/lib/libgen/common/reg_compile.c @@ -27,8 +27,6 @@ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include #include #include @@ -403,6 +401,7 @@ _compile(const char *sp, char *ep, char *endbuf, int viflag) *ep++ = (char)c; continue; } + break; } /* Drop through to default to use \ to turn off special chars */ -- cgit v1.2.3