From 88c06077f87aba32384e10144d23f0757a7a2162 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 22 Apr 2022 16:59:42 +0200 Subject: [PATCH] winedump: Remove unused variables. Signed-off-by: Alexandre Julliard --- tools/winedump/tlb.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tools/winedump/tlb.c b/tools/winedump/tlb.c index 9676ba88ef8..e2ad4eb51f0 100644 --- a/tools/winedump/tlb.c +++ b/tools/winedump/tlb.c @@ -1496,7 +1496,7 @@ static void dump_type(int len, const char *hlp_strings) unsigned flags; } misc; int typeinfo_start_offset, extra, member_offset, href_offset, i; - int vars_header_bytes = 0, vars_bytes = 0, saved_offset; + int saved_offset; const void *block; const struct sltg_typeinfo_header *ti; const struct sltg_member_header *mem; @@ -1638,7 +1638,7 @@ static void dump_type(int len, const char *hlp_strings) value, vars_start_offset, value + vars_start_offset); print_offset(); printf("type:\n"); - vars_bytes += sltg_print_compound_type(vars_start_offset, value); + sltg_print_compound_type(vars_start_offset, value); } else { @@ -1681,13 +1681,7 @@ static void dump_type(int len, const char *hlp_strings) else printf("helpstring offset = ffffh\n"); - if (magic & 0x20) - { - print_short_hex("varflags"); - vars_header_bytes += 2; - } - - vars_header_bytes += sizeof(struct sltg_variable); + if (magic & 0x20) print_short_hex("varflags"); if (next != -1) {