aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/file-elf.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-10-26 17:18:24 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-10-26 17:18:24 +0000
commit3a1041c0849c0dcc4e278edaae36608c2f24916b (patch)
tree324ef0509722fbce2a565d7f832032f1801a266d /epan/dissectors/file-elf.c
parent39f4eb2edd80fd9f9c88297c899edf3295e78df1 (diff)
Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
svn path=/trunk/; revision=52875
Diffstat (limited to 'epan/dissectors/file-elf.c')
-rw-r--r--epan/dissectors/file-elf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/file-elf.c b/epan/dissectors/file-elf.c
index d9108b6f0e..d91c803199 100644
--- a/epan/dissectors/file-elf.c
+++ b/epan/dissectors/file-elf.c
@@ -1261,7 +1261,7 @@ dissect_elf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
proto_tree_add_item(header_tree, hf_elf_shstrndx, tvb, offset, 2, machine_encoding);
shstrndx = (machine_encoding == ENC_BIG_ENDIAN) ?
tvb_get_ntohs(tvb, offset) : tvb_get_letohs(tvb, offset);
- offset += 2;
+ /*offset += 2;*/
program_header_item = proto_tree_add_text(main_tree, tvb, value_guard(phoff),
phnum * phentsize, "Program Header Table [%d entries]", phnum);
@@ -1412,9 +1412,6 @@ dissect_elf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
offset += 4;
- sh_type = (machine_encoding == ENC_BIG_ENDIAN) ?
- tvb_get_ntohl(tvb, offset) : tvb_get_letohl(tvb, offset);
-
offset += 4;
length = shoff + shstrndx * shentsize + 2 * 4 + 2 * register_size;