summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-07-16 12:36:51 +0300
committerDan McDonald <danmcd@joyent.com>2018-04-06 15:44:16 -0400
commit9807e1309317ed174757f9890d2b220d4fdeb3cf (patch)
tree9eb6b49944e434c42fd3b69b0a7fb7e09bca0951
parent11d7f7ff53e371b4622d8a4e0dd50b0e96ac0475 (diff)
downloadillumos-joyent-9807e1309317ed174757f9890d2b220d4fdeb3cf.tar.gz
9373 tbl: this statement may fall through
Reviewed by: Yuri Pankov <yuripv@yuripv.net> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/tbl/t4.c6
-rw-r--r--usr/src/cmd/tbl/t6.c4
-rw-r--r--usr/src/cmd/tbl/t7.c1
-rw-r--r--usr/src/cmd/tbl/t8.c3
4 files changed, 8 insertions, 6 deletions
diff --git a/usr/src/cmd/tbl/t4.c b/usr/src/cmd/tbl/t4.c
index 262ff12ca2..e2cec8e533 100644
--- a/usr/src/cmd/tbl/t4.c
+++ b/usr/src/cmd/tbl/t4.c
@@ -13,8 +13,6 @@
* specifies the terms and conditions for redistribution.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* t4.c: read table specification */
# include "t..c"
int oncol;
@@ -62,10 +60,12 @@ while (c=get1char())
default:
if (c != tab)
error(gettext("bad table specification character"));
+ /* FALLTHROUGH */
case ' ': /* note this is also case tab */
continue;
case '\n':
if(sawchar==0) continue;
+ /* FALLTHROUGH */
case ',':
case '.': /* end of table specification */
ncol = max(ncol, icol);
@@ -96,7 +96,9 @@ while (c=get1char())
continue;
case 'C': case 'S': case 'R': case 'N': case 'L': case 'A':
c += ('a'-'A');
+ /* FALLTHROUGH */
case '_': if (c=='_') c= '-';
+ /* FALLTHROUGH */
case '=': case '-':
case '^':
case 'c': case 's': case 'n': case 'r': case 'l': case 'a':
diff --git a/usr/src/cmd/tbl/t6.c b/usr/src/cmd/tbl/t6.c
index e862b71de1..db4d2ae3b3 100644
--- a/usr/src/cmd/tbl/t6.c
+++ b/usr/src/cmd/tbl/t6.c
@@ -13,8 +13,6 @@
* specifies the terms and conditions for redistribution.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* t6.c: compute tab stops */
# define tx(a) (a>(char *)0 && a<(char *)128)
# include "t..c"
@@ -58,6 +56,7 @@ for(icol=0; icol <ncol; icol++)
doubled[icol]=1;
fprintf(tabout, ".if \\n(%c->\\n(%d .nr %d \\n(%c-\n",s,S2,S2,s);
}
+ /* FALLTHROUGH */
case 'n':
if (table[ilin][icol].rcol!=0)
{
@@ -78,6 +77,7 @@ for(icol=0; icol <ncol; icol++)
}
continue;
}
+ /* FALLTHROUGH */
case 'r':
case 'c':
case 'l':
diff --git a/usr/src/cmd/tbl/t7.c b/usr/src/cmd/tbl/t7.c
index 5cdd9fc316..d1327eb89f 100644
--- a/usr/src/cmd/tbl/t7.c
+++ b/usr/src/cmd/tbl/t7.c
@@ -62,6 +62,7 @@ for(c=0; c<ncol; c++)
if (table[ldata][c].rcol)
if (lused[c]) /*Zero field width*/
fprintf(tabout, "\\n(%du ",c+CMID);
+ /* FALLTHROUGH */
case 'c':
case 'l':
case 'r':
diff --git a/usr/src/cmd/tbl/t8.c b/usr/src/cmd/tbl/t8.c
index 0b05b43b4f..8d859622e2 100644
--- a/usr/src/cmd/tbl/t8.c
+++ b/usr/src/cmd/tbl/t8.c
@@ -12,8 +12,6 @@
* specifies the terms and conditions for redistribution.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* t8.c: write out one line of output table */
# include "t..c"
# include <locale.h>
@@ -173,6 +171,7 @@ for(c=0; c<ncol; c++)
form=1;
break;
}
+ /* FALLTHROUGH */
case 'c':
form=3; break;
case 'r':