diff options
author | Joel Brobecker <brobecker@gnat.com> | 2003-01-11 02:13:23 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2003-01-11 02:13:23 +0000 |
commit | 1fb309eaa6afba828c4b780e41dd744585fa09b2 (patch) | |
tree | d8b96afb7f0a996631ddbd8d6b50151d7e56809d /gdb | |
parent | 88d262ca1c0da58ea8c0230f56157245e7991165 (diff) | |
download | gdb-1fb309eaa6afba828c4b780e41dd744585fa09b2.zip gdb-1fb309eaa6afba828c4b780e41dd744585fa09b2.tar.gz gdb-1fb309eaa6afba828c4b780e41dd744585fa09b2.tar.bz2 |
* hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
a compilation warning.
(hpread_process_one_debug_symbol): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/hpread.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e2194e4..f545808 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-01-10 J. Brobecker <brobecker@gnat.com> + + * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix + a compilation warning. + (hpread_process_one_debug_symbol): Likewise. + 2003-01-10 David Carlton <carlton@math.stanford.edu> * linespec.c (decode_line_1): Rename variable 's' to diff --git a/gdb/hpread.c b/gdb/hpread.c index 3916060..cf5c563 100644 --- a/gdb/hpread.c +++ b/gdb/hpread.c @@ -99,7 +99,7 @@ struct hpread_symfile_info else if (((unsigned)(SYM)->dsfile.name) >= VT_SIZE (OBJFILE)) \ { \ complaint (&symfile_complaints, "bad string table offset in symbol %d", \ - (char *) symnum); \ + symnum); \ *NAMEP = ""; \ } \ else \ @@ -5233,7 +5233,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name, /* Stack must be empty now. */ if (context_stack_depth != 0) - lbrac_unmatched_complaint ((char *) symnum); + lbrac_unmatched_complaint (symnum); new = push_context (0, valu); /* Built a type for the function. This includes processing @@ -5356,7 +5356,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name, CURRENT_FUNCTION_VALUE (objfile) = valu; /* Stack must be empty now. */ if (context_stack_depth != 0) - lbrac_unmatched_complaint ((char *) symnum); + lbrac_unmatched_complaint (symnum); new = push_context (0, valu); /* Built a type for the function. This includes processing @@ -5584,7 +5584,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name, new = pop_context (); desc = dn_bufp->dend.beginscope.dnttp.index; if (desc != new->depth) - lbrac_mismatch_complaint ((char *) symnum); + lbrac_mismatch_complaint (symnum); /* Make a block for the local symbols within. */ finish_block (new->name, &local_symbols, new->old_blocks, |