From 62d1da1b3eb91b405a633aa4e4d841d8a7a0da3a Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sun, 9 Mar 2014 22:52:31 +0800 Subject: Fix warning of clang --- tccrun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tccrun.c') diff --git a/tccrun.c b/tccrun.c index 620be0d..bd8c33f 100644 --- a/tccrun.c +++ b/tccrun.c @@ -272,7 +272,7 @@ static addr_t rt_printline(addr_t wanted_pc, const char *msg) if (stab_section) { stab_len = stab_section->data_offset; stab_sym = (Stab_Sym *)stab_section->data; - stab_str = stabstr_section->data; + stab_str = (char *) stabstr_section->data; } func_name[0] = '\0'; @@ -365,7 +365,7 @@ no_stabs: if (wanted_pc >= sym->st_value && wanted_pc < sym->st_value + sym->st_size) { pstrcpy(last_func_name, sizeof(last_func_name), - strtab_section->data + sym->st_name); + (char *) strtab_section->data + sym->st_name); func_addr = sym->st_value; goto found; } -- cgit v1.3.1