From 1e8199757379047b30cc13c6aed3a0d25c7a035a Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sun, 9 Jul 2017 21:44:49 +0300 Subject: [PATCH] 9032 sgs: this statement may fall through Reviewed by: Yuri Pankov Reviewed by: Andrew Stormont Approved by: Dan McDonald --- usr/src/cmd/sgs/lex/common/parser.y | 2 +- usr/src/cmd/sgs/unifdef/common/unifdef.c | 3 +-- usr/src/cmd/sgs/yacc/common/y2.c | 6 ++---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/usr/src/cmd/sgs/lex/common/parser.y b/usr/src/cmd/sgs/lex/common/parser.y index 00465f4522..9b1f173bf2 100644 --- a/usr/src/cmd/sgs/lex/common/parser.y +++ b/usr/src/cmd/sgs/lex/common/parser.y @@ -30,7 +30,6 @@ %{ -#pragma ident "%Z%%M% %I% %E% SMI" /* * Lint is unable to properly handle formats with wide strings @@ -898,6 +897,7 @@ Character range specified between different codesets."); break; case '\\': c = usescape(c=gch()); + /* FALLTHROUGH */ default: character: if(iter){ /* second part of an iteration */ diff --git a/usr/src/cmd/sgs/unifdef/common/unifdef.c b/usr/src/cmd/sgs/unifdef/common/unifdef.c index 9e6b82cc14..fbb0d27008 100644 --- a/usr/src/cmd/sgs/unifdef/common/unifdef.c +++ b/usr/src/cmd/sgs/unifdef/common/unifdef.c @@ -29,8 +29,6 @@ /* Copyright (c) 1982 Regents of the University of California */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * unifdef - remove ifdef'ed lines */ @@ -524,6 +522,7 @@ ent: while (--tmp); break; } + /* FALLTHROUGH */ default: *line++ = chr; num++; diff --git a/usr/src/cmd/sgs/yacc/common/y2.c b/usr/src/cmd/sgs/yacc/common/y2.c index 3599d40904..fbdaf19445 100644 --- a/usr/src/cmd/sgs/yacc/common/y2.c +++ b/usr/src/cmd/sgs/yacc/common/y2.c @@ -26,8 +26,6 @@ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include "dextern.h" #include "sgs.h" #include @@ -1184,8 +1182,8 @@ begin: case L'=': return (PREC); case L'{': return (LCURLY); default: reserve = 1; - } - + } + /* FALLTHROUGH */ default: if (iswdigit(c)) { /* number */ -- 2.11.4.GIT