diff options
author | Joerg Mayer <jmayer@loplof.de> | 2015-05-01 02:07:56 +0200 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2015-05-01 00:10:28 +0000 |
commit | 39a31c3205ed1f0691f5e55174abe84653bcf7b0 (patch) | |
tree | 5439c9f4ed558b0b1bceb6d4a557652f208d118e /epan/nghttp2 | |
parent | 7a308e737deba7ffff5bf07d49e8e294cc9ddb4a (diff) | |
download | wireshark-39a31c3205ed1f0691f5e55174abe84653bcf7b0.tar.gz |
Fix warning:
/home/jmayer/work/wireshark/git/epan/nghttp2/nghttp2_hd.c: In function ‘hd_inflate_remove_bufs_with_name’:
/home/jmayer/work/wireshark/git/epan/nghttp2/nghttp2_hd.c:1736:10: error: variable ‘rv’ set but not used [-Werror=unused-but-set-variable]
size_t rv;
^
turning error.
Change-Id: Ibd46013ddbdbdf634e7df1eb7dd50c60a1f62e26
Reviewed-on: https://code.wireshark.org/review/8257
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Diffstat (limited to 'epan/nghttp2')
-rw-r--r-- | epan/nghttp2/nghttp2_hd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/nghttp2/nghttp2_hd.c b/epan/nghttp2/nghttp2_hd.c index 2f0c00228a..b924d05a00 100644 --- a/epan/nghttp2/nghttp2_hd.c +++ b/epan/nghttp2/nghttp2_hd.c @@ -1733,7 +1733,6 @@ static int hd_inflate_remove_bufs(nghttp2_hd_inflater *inflater, nghttp2_nv *nv, static int hd_inflate_remove_bufs_with_name(nghttp2_hd_inflater *inflater, nghttp2_nv *nv, nghttp2_hd_entry *ent_name) { - size_t rv; size_t buflen; uint8_t *buf; nghttp2_mem *mem; @@ -1751,7 +1750,7 @@ static int hd_inflate_remove_bufs_with_name(nghttp2_hd_inflater *inflater, /* Copy including terminal NULL */ memcpy(buf, ent_name->nv.name, ent_name->nv.namelen + 1); - rv = nghttp2_bufs_remove_copy(&inflater->nvbufs, + nghttp2_bufs_remove_copy(&inflater->nvbufs, buf + ent_name->nv.namelen + 1); assert(ent_name->nv.namelen + 1 + rv == buflen); |