diff options
| -rw-r--r-- | deflate.c | 2 | ||||
| -rw-r--r-- | gzread.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -712,7 +712,9 @@ unsigned long Z_EXPORT PREFIX(deflateBound)(PREFIX3(stream) *strm, unsigned long #endif default: /* for compiler happiness */ Z_UNREACHABLE(); +#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L wraplen = ZLIB_WRAPLEN; +#endif } /* if not default parameters, return conservative bound */ @@ -233,7 +233,9 @@ static int gz_fetch(gz_state *state) { continue; default: // Can't happen Z_UNREACHABLE(); +#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L return -1; +#endif } } while (state->x.have == 0 && (!state->eof || strm->avail_in)); return 0; |
