9032 sgs: this statement may fall through

Review Request #834 - Created Feb. 5, 2018 and submitted

Information
Toomas Soome
illumos-gate
9032
e19c7d3...
Reviewers
general
../common/unifdef.c: In function 'getlin':
../common/unifdef.c:520:8: error: this statement may fall through [-Werror=implicit-fallthrough=]
     if (expandtabs) {
        ^
../common/unifdef.c:527:4: note: here
    default:
    ^~~~~~~

../common/parser.y:899:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
     c = usescape(c=gch());
     ~~^~~~~~~~~~~~~~~~~~~
../common/parser.y:900:4: note: here
    default:
    ^~~~~~~
cc1: all warnings being treated as errors

../common/y2.c: In function 'gettok':
../common/y2.c:1184:20: error: this statement may fall through [-Werror=implicit-fallthrough=]
   default: reserve = 1;
            ~~~~~~~~^~~
../common/y2.c:1187:2: note: here
  default:
  ^~~~~~~
cc1: all warnings being treated as errors

  
Yuri Pankov
Andrew Stormont
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...