gcc lint
authorK. Richard Pixley <rich@cygnus>
Wed, 8 Sep 1993 21:04:59 +0000 (21:04 +0000)
committerK. Richard Pixley <rich@cygnus>
Wed, 8 Sep 1993 21:04:59 +0000 (21:04 +0000)
gdb/ChangeLog
gdb/gdbtypes.c
gdb/mipsread.c

index 276df6b..3fec54f 100644 (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
index cdd7343..c6e41f3 100644 (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--)
index d1228ea..608814d 100644 (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;