summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Sauter <sauter@locoslab.com>2017-06-11 12:37:14 +0200
committerMichael Mann <mmann78@netscape.net>2017-06-11 13:01:03 +0000
commit325895b9a29be0474f85c54b6b7d71f2912f46c1 (patch)
tree1a070246225eb812abe8110aa21a206df1defc9e
parentead335403968842ae03ba43e86362b92445fa223 (diff)
downloadwireshark-325895b9a29be0474f85c54b6b7d71f2912f46c1.tar.gz
packet-spdy: Fix -Wunused-const-variable error when compiling without zlib
Change-Id: Id471772488d3a0568f16f604585b3155a57e47b2 Reviewed-on: https://code.wireshark.org/review/22072 Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> (cherry picked from commit 5617527ee3831a8012f076b67e2532eeb8b1da2d) Reviewed-on: https://code.wireshark.org/review/22073
-rw-r--r--epan/dissectors/packet-spdy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-spdy.c b/epan/dissectors/packet-spdy.c
index d5078ae6af..a648206806 100644
--- a/epan/dissectors/packet-spdy.c
+++ b/epan/dissectors/packet-spdy.c
@@ -258,6 +258,7 @@ static gboolean spdy_decompress_body = FALSE;
static gboolean spdy_decompress_headers = FALSE;
#endif
+#ifdef HAVE_ZLIB
static const char spdy_dictionary[] = {
0x00, 0x00, 0x00, 0x07, 0x6f, 0x70, 0x74, 0x69, /* - - - - o p t i */
0x6f, 0x6e, 0x73, 0x00, 0x00, 0x00, 0x04, 0x68, /* o n s - - - - h */
@@ -439,7 +440,6 @@ static const char spdy_dictionary[] = {
0x2c, 0x65, 0x6e, 0x71, 0x3d, 0x30, 0x2e /* - e n q - 0 - */
};
-#ifdef HAVE_ZLIB
/* callback function used at the end of file-scope to cleanup zlib's inflate
* streams to avoid memory leaks.
* XXX: can we be more aggressive and call this sooner for finished streams?