This commit is contained in:
K. Richard Pixley 1993-09-08 21:04:59 +00:00
parent 0ac0a9f6f1
commit e7bf1152a9
3 changed files with 14 additions and 8 deletions

View File

@ -1,6 +1,11 @@
Wed Sep 8 13:01:10 1993 K. Richard Pixley (rich@cygnus.com)
Gcc lint.
* infrun.c (wait_for_inferior): initialize stop_sp, prologue_pc.
remove symtab, appears unused.
(restore_selected_frame): return 1.
* mipsread.c (psymtab_to_symtab_1): initialize first_off.
(fixup_sigtramp): initialize b0.
* printcmd.c (do_examine): initialize val_type.
(print_frame_args): initialize b.
* ser-tcp.c (tcp_restore): comment out declaration. Appears

View File

@ -684,9 +684,6 @@ lookup_struct_elt_type (type, name, noerr)
int noerr;
{
int i;
#if 0
char *typename;
#endif
if (TYPE_CODE (type) == TYPE_CODE_PTR ||
TYPE_CODE (type) == TYPE_CODE_REF)
@ -709,9 +706,13 @@ lookup_struct_elt_type (type, name, noerr)
the structure tag name is the same as the member name. I.E. when doing
"ptype bell->bar" for "struct foo { int bar; int foo; } bell;"
Disabled by fnf. */
typename = type_name_no_tag (type);
if (typename != NULL && STREQ (typename, name))
return type;
{
char *typename;
typename = type_name_no_tag (type);
if (typename != NULL && STREQ (typename, name))
return type;
}
#endif
for (i = TYPE_NFIELDS (type) - 1; i >= TYPE_N_BASECLASSES (type); i--)

View File

@ -2564,7 +2564,7 @@ psymtab_to_symtab_1 (pst, filename)
char *pdr_ptr;
char *pdr_end;
int first_pdr;
unsigned long first_off;
unsigned long first_off = 0;
/* This symbol table contains stabs-in-ecoff entries. */
@ -3305,7 +3305,7 @@ fixup_sigtramp ()
{
struct symbol *s;
struct symtab *st;
struct block *b, *b0;
struct block *b, *b0 = NULL;
sigtramp_address = -1;