9133 ucbcmd: this statement may fall through

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

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
C Fraire
Ken Mays
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...