Add casts to remove compiler warnings from native Sun cc.
authorFred Fish <fnf@specifix.com>
Fri, 25 Oct 1991 06:47:13 +0000 (06:47 +0000)
committerFred Fish <fnf@specifix.com>
Fri, 25 Oct 1991 06:47:13 +0000 (06:47 +0000)
gdb/ChangeLog
gdb/dwarfread.c

index 99bf7a937b81b670c213a5f0ecfe78bf4d8876c2..f7ad1dda787405b0abb26e2196c81b0a9c9f20f3 100644 (file)
@@ -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
index 24d9c8c8285b884783daa7b7639d6df47d2dd5a7..ac08a51fbceff24d1b72b2c2d8f5873f24a696ba 100644 (file)
@@ -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);
This page took 0.029878 seconds and 4 git commands to generate.