@@ -723,6 +723,7 @@ int flush;
723
723
CRC2 (state -> check , hold );
724
724
INITBITS ();
725
725
state -> mode = TIME ;
726
+ /* fallthrough */
726
727
case TIME :
727
728
NEEDBITS (32 );
728
729
if (state -> head != Z_NULL )
@@ -731,6 +732,7 @@ int flush;
731
732
CRC4 (state -> check , hold );
732
733
INITBITS ();
733
734
state -> mode = OS ;
735
+ /* fallthrough */
734
736
case OS :
735
737
NEEDBITS (16 );
736
738
if (state -> head != Z_NULL ) {
@@ -741,6 +743,7 @@ int flush;
741
743
CRC2 (state -> check , hold );
742
744
INITBITS ();
743
745
state -> mode = EXLEN ;
746
+ /* fallthrough */
744
747
case EXLEN :
745
748
if (state -> flags & 0x0400 ) {
746
749
NEEDBITS (16 );
@@ -754,6 +757,7 @@ int flush;
754
757
else if (state -> head != Z_NULL )
755
758
state -> head -> extra = Z_NULL ;
756
759
state -> mode = EXTRA ;
760
+ /* fallthrough */
757
761
case EXTRA :
758
762
if (state -> flags & 0x0400 ) {
759
763
copy = state -> length ;
@@ -776,6 +780,7 @@ int flush;
776
780
}
777
781
state -> length = 0 ;
778
782
state -> mode = NAME ;
783
+ /* fallthrough */
779
784
case NAME :
780
785
if (state -> flags & 0x0800 ) {
781
786
if (have == 0 ) goto inf_leave ;
@@ -797,6 +802,7 @@ int flush;
797
802
state -> head -> name = Z_NULL ;
798
803
state -> length = 0 ;
799
804
state -> mode = COMMENT ;
805
+ /* fallthrough */
800
806
case COMMENT :
801
807
if (state -> flags & 0x1000 ) {
802
808
if (have == 0 ) goto inf_leave ;
@@ -817,6 +823,7 @@ int flush;
817
823
else if (state -> head != Z_NULL )
818
824
state -> head -> comment = Z_NULL ;
819
825
state -> mode = HCRC ;
826
+ /* fallthrough */
820
827
case HCRC :
821
828
if (state -> flags & 0x0200 ) {
822
829
NEEDBITS (16 );
@@ -840,15 +847,18 @@ int flush;
840
847
strm -> adler = state -> check = ZSWAP32 (hold );
841
848
INITBITS ();
842
849
state -> mode = DICT ;
850
+ /* fallthrough */
843
851
case DICT :
844
852
if (state -> havedict == 0 ) {
845
853
RESTORE ();
846
854
return Z_NEED_DICT ;
847
855
}
848
856
strm -> adler = state -> check = adler32 (0L , Z_NULL , 0 );
849
857
state -> mode = TYPE ;
858
+ /* fallthrough */
850
859
case TYPE :
851
860
if (flush == Z_BLOCK || flush == Z_TREES ) goto inf_leave ;
861
+ /* fallthrough */
852
862
case TYPEDO :
853
863
if (state -> last ) {
854
864
BYTEBITS ();
@@ -899,8 +909,10 @@ int flush;
899
909
INITBITS ();
900
910
state -> mode = COPY_ ;
901
911
if (flush == Z_TREES ) goto inf_leave ;
912
+ /* fallthrough */
902
913
case COPY_ :
903
914
state -> mode = COPY ;
915
+ /* fallthrough */
904
916
case COPY :
905
917
copy = state -> length ;
906
918
if (copy ) {
@@ -936,6 +948,7 @@ int flush;
936
948
Tracev ((stderr , "inflate: table sizes ok\n" ));
937
949
state -> have = 0 ;
938
950
state -> mode = LENLENS ;
951
+ /* fallthrough */
939
952
case LENLENS :
940
953
while (state -> have < state -> ncode ) {
941
954
NEEDBITS (3 );
@@ -957,6 +970,7 @@ int flush;
957
970
Tracev ((stderr , "inflate: code lengths ok\n" ));
958
971
state -> have = 0 ;
959
972
state -> mode = CODELENS ;
973
+ /* fallthrough */
960
974
case CODELENS :
961
975
while (state -> have < state -> nlen + state -> ndist ) {
962
976
for (;;) {
@@ -1040,8 +1054,10 @@ int flush;
1040
1054
Tracev ((stderr , "inflate: codes ok\n" ));
1041
1055
state -> mode = LEN_ ;
1042
1056
if (flush == Z_TREES ) goto inf_leave ;
1057
+ /* fallthrough */
1043
1058
case LEN_ :
1044
1059
state -> mode = LEN ;
1060
+ /* fallthrough */
1045
1061
case LEN :
1046
1062
if (have >= 6 && left >= 258 ) {
1047
1063
RESTORE ();
@@ -1091,6 +1107,7 @@ int flush;
1091
1107
}
1092
1108
state -> extra = (unsigned )(here .op ) & 15 ;
1093
1109
state -> mode = LENEXT ;
1110
+ /* fallthrough */
1094
1111
case LENEXT :
1095
1112
if (state -> extra ) {
1096
1113
NEEDBITS (state -> extra );
@@ -1101,6 +1118,7 @@ int flush;
1101
1118
Tracevv ((stderr , "inflate: length %u\n" , state -> length ));
1102
1119
state -> was = state -> length ;
1103
1120
state -> mode = DIST ;
1121
+ /* fallthrough */
1104
1122
case DIST :
1105
1123
for (;;) {
1106
1124
here = state -> distcode [BITS (state -> distbits )];
@@ -1128,6 +1146,7 @@ int flush;
1128
1146
state -> offset = (unsigned )here .val ;
1129
1147
state -> extra = (unsigned )(here .op ) & 15 ;
1130
1148
state -> mode = DISTEXT ;
1149
+ /* fallthrough */
1131
1150
case DISTEXT :
1132
1151
if (state -> extra ) {
1133
1152
NEEDBITS (state -> extra );
@@ -1144,6 +1163,7 @@ int flush;
1144
1163
#endif
1145
1164
Tracevv ((stderr , "inflate: distance %u\n" , state -> offset ));
1146
1165
state -> mode = MATCH ;
1166
+ /* fallthrough */
1147
1167
case MATCH :
1148
1168
if (left == 0 ) goto inf_leave ;
1149
1169
copy = out - left ;
@@ -1219,6 +1239,7 @@ int flush;
1219
1239
}
1220
1240
#ifdef GUNZIP
1221
1241
state -> mode = LENGTH ;
1242
+ /* fallthrough */
1222
1243
case LENGTH :
1223
1244
if (state -> wrap && state -> flags ) {
1224
1245
NEEDBITS (32 );
@@ -1232,6 +1253,7 @@ int flush;
1232
1253
}
1233
1254
#endif
1234
1255
state -> mode = DONE ;
1256
+ /* fallthrough */
1235
1257
case DONE :
1236
1258
ret = Z_STREAM_END ;
1237
1259
goto inf_leave ;
@@ -1241,6 +1263,7 @@ int flush;
1241
1263
case MEM :
1242
1264
return Z_MEM_ERROR ;
1243
1265
case SYNC :
1266
+ /* fallthrough */
1244
1267
default :
1245
1268
return Z_STREAM_ERROR ;
1246
1269
}
0 commit comments