From 2b7e7fb0b2d0c98579a632b2c59b8d2707eb26ab Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Thu, 22 Sep 2016 19:53:27 -0400 Subject: [PATCH] [mod_deflate] fix longjmp clobber compiler warning (workaround to avoid compiler warnings with and without --enable-mmap) --- src/mod_deflate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod_deflate.c b/src/mod_deflate.c index 8f4c3822..9605081b 100644 --- a/src/mod_deflate.c +++ b/src/mod_deflate.c @@ -669,11 +669,13 @@ static void deflate_compress_cleanup(server *srv, connection *con, handler_ctx * static int mod_deflate_file_chunk(server *srv, connection *con, handler_ctx *hctx, chunk *c, off_t st_size) { off_t abs_offset; off_t toSend = -1; - char *start = NULL; + char *start; #ifdef USE_MMAP off_t we_want_to_mmap = 2 MByte; off_t we_want_to_send = st_size; volatile int mapped = 0;/* quiet warning: might be clobbered by 'longjmp' */ +#else + start = NULL; #endif if (-1 == c->file.fd) { /* open the file if not already open */