aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/dwarfread.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 99bf7a9..f7ad1dd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
Thu Oct 24 23:06:40 1991 Fred Fish (fnf at cygnus.com)
+ * dwarfread.c: Add casts to remove compiler warnings.
+
* tm-3b1.h, tm-68k.h, tm-altos.h, tm-amix.h, tm-hp300bsd.h,
tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-pn.h, tm-sun2.h,
tm-sun3.h: Remove locally duplicated code for calling functions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index 24d9c8c..ac08a51 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -3019,7 +3019,7 @@ DEFUN(decode_mod_fund_type, (typedata), char *typedata)
/* Deduct the size of the fundamental type bytes at the end of the block. */
modcount -= sizeof (short);
/* Skip over the two size bytes at the beginning of the block. */
- modifiers = typedata + sizeof (short);
+ modifiers = (unsigned char *) typedata + sizeof (short);
/* Now do the actual decoding */
typep = decode_modified_type (modifiers, modcount, AT_mod_fund_type);
return (typep);
@@ -3060,7 +3060,7 @@ DEFUN(decode_mod_u_d_type, (typedata), char *typedata)
/* Deduct the size of the reference type bytes at the end of the block. */
modcount -= sizeof (long);
/* Skip over the two size bytes at the beginning of the block. */
- modifiers = typedata + sizeof (short);
+ modifiers = (unsigned char *) typedata + sizeof (short);
/* Now do the actual decoding */
typep = decode_modified_type (modifiers, modcount, AT_mod_u_d_type);
return (typep);