9133 ucbcmd: this statement may fall through

Review Request #869 - Created Feb. 19, 2018 and updated

Information
Toomas Soome
illumos-gate
9133
3b56716...
Reviewers
general
sed0.c: In function 'fcomp':
sed0.c:246:5: error: this statement may fall through [-Werror=implicit-fallthrough=]
     comperr("Unrecognized command: %s");
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sed0.c:248:4: note: here
    case '!':
    ^~~~

stty.c: In function 'main':
stty.c:159:4: error: this statement may fall through [-Werror=implicit-fallthrough=]
    exit(0);
    ^~~~~~~
stty.c:160:3: note: here
   case 'h':
   ^~~~
stty.c:162:4: error: this statement may fall through [-Werror=implicit-fallthrough=]
    exit(0);
    ^~~~~~~
stty.c:163:3: note: here
   default:
   ^~~~~~~

tset.c: In function 'main':
tset.c:560:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
     Specialerase = YES;
                  ^
tset.c:563:4: note: here
    case 'e': /* erase character */
    ^~~~
tset.c:829:4: error: this statement may fall through [-Werror=implicit-fallthrough=]
    exit(-1);
    ^~~~~~~~
tset.c:831:3: note: here
   case 0:
   ^~~~

cc1: all warnings being treated as errors

  
Andrew Stormont
C Fraire
Toomas Soome
Review request changed

Change Summary:

moving fix from regexp.h to sed.

Commit:

-9c88f8a14d55a2267c3c620c29d426641fc9bff4
+3b56716b26e3064d8cea99a4ac9913344515f86e

Diff:

Revision 2 (+11 -19)

Show changes

C Fraire
Ship It!
Ken Mays
Ship It!
Loading...