]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
One more implicit fallthrough warning to fix on GCC 7
authorNick Mathewson <nickm@torproject.org>
Tue, 12 Sep 2017 13:22:50 +0000 (09:22 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 12 Sep 2017 13:22:50 +0000 (09:22 -0400)
src/common/torgzip.c

index 3353f0ef61aa9af5d1137186ec3c55d6fea2f3f3..c44399aa74d5be533deff66f4601b7a05831afdf 100644 (file)
@@ -181,6 +181,7 @@ tor_gzip_compress(char **out, size_t *out_len,
         /* In case zlib doesn't work as I think .... */
         if (stream->avail_out >= stream->avail_in+16)
           break;
+        /* Falls through. */
       case Z_BUF_ERROR:
         offset = stream->next_out - ((unsigned char*)*out);
         old_size = out_size;
@@ -319,6 +320,7 @@ tor_gzip_uncompress(char **out, size_t *out_len,
         /* In case zlib doesn't work as I think.... */
         if (stream->avail_out >= stream->avail_in+16)
           break;
+        /* Falls through. */
       case Z_BUF_ERROR:
         if (stream->avail_out > 0) {
           log_fn(protocol_warn_level, LD_PROTOCOL,