Commit 89cb5019 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

dbghelp: Assorted fixes for shadow variables.

parent acea60ca
...@@ -2188,7 +2188,7 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections, ...@@ -2188,7 +2188,7 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections,
vector_init(&files, sizeof(unsigned), 16); vector_init(&files, sizeof(unsigned), 16);
while (*traverse.data) while (*traverse.data)
{ {
unsigned int dir_index, mod_time, length; unsigned int dir_index, mod_time;
const char* name; const char* name;
const char* dir; const char* dir;
unsigned* psrc; unsigned* psrc;
...@@ -2199,7 +2199,7 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections, ...@@ -2199,7 +2199,7 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections,
mod_time = dwarf2_leb128_as_unsigned(&traverse); mod_time = dwarf2_leb128_as_unsigned(&traverse);
length = dwarf2_leb128_as_unsigned(&traverse); length = dwarf2_leb128_as_unsigned(&traverse);
dir = *(const char**)vector_at(&dirs, dir_index); dir = *(const char**)vector_at(&dirs, dir_index);
TRACE("Got file %s/%s (%u,%u)\n", dir, name, mod_time, length); TRACE("Got file %s/%s (%u,%lu)\n", dir, name, mod_time, length);
psrc = vector_add(&files, &ctx->pool); psrc = vector_add(&files, &ctx->pool);
*psrc = source_new(ctx->module, dir, name); *psrc = source_new(ctx->module, dir, name);
} }
......
...@@ -1551,7 +1551,6 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root ...@@ -1551,7 +1551,6 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root
int i, length; int i, length;
struct symt_block* block = NULL; struct symt_block* block = NULL;
struct symt* symt; struct symt* symt;
const char* name;
struct symt_compiland* compiland = NULL; struct symt_compiland* compiland = NULL;
struct location loc; struct location loc;
...@@ -1947,9 +1946,13 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root ...@@ -1947,9 +1946,13 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root
case S_PROCREF_V1: case S_PROCREF_V1:
case S_DATAREF_V1: case S_DATAREF_V1:
case S_LPROCREF_V1: case S_LPROCREF_V1:
name = (const char*)sym + length; {
length += (*name + 1 + 3) & ~3; const char* name;
break;
name = (const char*)sym + length;
length += (*name + 1 + 3) & ~3;
break;
}
case S_MSTOOL_V3: /* just to silence a few warnings */ case S_MSTOOL_V3: /* just to silence a few warnings */
case S_MSTOOLINFO_V3: case S_MSTOOLINFO_V3:
......
...@@ -479,7 +479,6 @@ static BOOL CALLBACK module_find_cb(PCWSTR buffer, PVOID user) ...@@ -479,7 +479,6 @@ static BOOL CALLBACK module_find_cb(PCWSTR buffer, PVOID user)
{ {
HANDLE hFile, hMap; HANDLE hFile, hMap;
void* mapping; void* mapping;
DWORD timestamp;
timestamp = ~mf->dw1; timestamp = ~mf->dw1;
size = ~mf->dw2; size = ~mf->dw2;
......
...@@ -604,7 +604,6 @@ static inline int stabs_pts_read_method_info(struct ParseTypedefData* ptd) ...@@ -604,7 +604,6 @@ static inline int stabs_pts_read_method_info(struct ParseTypedefData* ptd)
if (mthd == '*') if (mthd == '*')
{ {
long int ofs; long int ofs;
struct symt* dt;
PTS_ABORTIF(ptd, stabs_pts_read_number(ptd, &ofs) == -1); PTS_ABORTIF(ptd, stabs_pts_read_number(ptd, &ofs) == -1);
PTS_ABORTIF(ptd, *ptd->ptr++ != ';'); PTS_ABORTIF(ptd, *ptd->ptr++ != ';');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment