[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/maint-0.3.0] One more implicit fallthrough warning to fix on GCC 7



commit bac160b4e079398d82a6dda13111fc1f3407d837
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Sep 12 09:22:50 2017 -0400

    One more implicit fallthrough warning to fix on GCC 7
---
 src/common/torgzip.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common/torgzip.c b/src/common/torgzip.c
index 3353f0ef6..c44399aa7 100644
--- a/src/common/torgzip.c
+++ b/src/common/torgzip.c
@@ -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,



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits