9305 pppdump: this statement may fall through

Review Request #968 — Created March 18, 2018 and submitted

tsoome
illumos-gate
9305
6ac701e...
general
zlib.c:2886:22: error: this statement may fall through [-Werror=implicit-fallthrough=]
       z->state->mode = FLAG;
       ~~~~~~~~~~~~~~~^~~~~~
zlib.c:2887:5: note: here
     case FLAG:
     ^~~~
zlib.c:2904:22: error: this statement may fall through [-Werror=implicit-fallthrough=]
       z->state->mode = BLOCKS;
       ~~~~~~~~~~~~~~~^~~~~~~~
zlib.c:2905:5: note: here
     case BLOCKS:
     ^~~~
zlib.c:2924:22: error: this statement may fall through [-Werror=implicit-fallthrough=]
       z->state->mode = CHECK4;
       ~~~~~~~~~~~~~~~^~~~~~~~
zlib.c:2925:5: note: here
     case CHECK4:
     ^~~~
zlib.c:2928:22: error: this statement may fall through [-Werror=implicit-fallthrough=]
       z->state->mode = CHECK3;
       ~~~~~~~~~~~~~~~^~~~~~~~
zlib.c:2929:5: note: here
     case CHECK3:
     ^~~~
zlib.c:2932:22: error: this statement may fall through [-Werror=implicit-fallthrough=]
       z->state->mode = CHECK2;
       ~~~~~~~~~~~~~~~^~~~~~~~
zlib.c:2933:5: note: here
     case CHECK2:
     ^~~~
zlib.c:2936:22: error: this statement may fall through [-Werror=implicit-fallthrough=]
       z->state->mode = CHECK1;
       ~~~~~~~~~~~~~~~^~~~~~~~
zlib.c:2937:5: note: here
     case CHECK1:
     ^~~~
zlib.c:2949:22: error: this statement may fall through [-Werror=implicit-fallthrough=]
       z->state->mode = DONE;
       ~~~~~~~~~~~~~~~^~~~~~
zlib.c:2950:5: note: here
     case DONE:
     ^~~~
zlib.c: In function 'inflate_blocks':
zlib.c:3476:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
       s->mode = CODES;
       ~~~~~~~~^~~~~~~
zlib.c:3477:5: note: here
     case CODES:
     ^~~~
zlib.c:3501:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
       s->mode = DRY;
       ~~~~~~~~^~~~~
zlib.c:3502:5: note: here
     case DRY:
     ^~~~
zlib.c:3506:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
       s->mode = DONEB;
       ~~~~~~~~^~~~~~~
zlib.c:3507:5: note: here
     case DONEB:
     ^~~~
zlib.c: In function 'inflate_codes':
zlib.c:4182:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
       c->mode = LEN;
       ~~~~~~~~^~~~~
zlib.c:4183:5: note: here
     case LEN:           /* i: get length/literal/eob next */
     ^~~~
zlib.c:4229:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
       c->mode = DIST;
       ~~~~~~~~^~~~~~
zlib.c:4230:5: note: here
     case DIST:          /* i: get distance next */
     ^~~~
zlib.c:4259:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
       c->mode = COPY;
       ~~~~~~~~^~~~~~
zlib.c:4260:5: note: here
     case COPY:          /* o: copying bytes in window, waiting for space */
     ^~~~
zlib.c:4289:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
       c->mode = END;
       ~~~~~~~~^~~~~
zlib.c:4290:5: note: here
     case END:
     ^~~~
cc1: all warnings being treated as errors


seeemef@mac.com
  1. Ship It!
  2. 
      
citrus
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...