Fix IRIX cc warnings. Fix ui_out functions that didn't return a value.
authorAndrew Cagney <cagney@redhat.com>
Mon, 15 May 2000 01:44:40 +0000 (01:44 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 15 May 2000 01:44:40 +0000 (01:44 +0000)
gdb/ChangeLog
gdb/mdebugread.c
gdb/proc-events.c
gdb/ui-out.c

index 135fadb..6af6997 100644 (file)
@@ -1,3 +1,10 @@
+Mon May 15 11:23:23 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * proc-events.c (init_syscall_table): Delete stray ``;''.
+       * ui-out.c (ui_out_set_flags, ui_out_clear_flags): Return old
+       value.
+       * mdebugread.c (START_PSYMTAB): Add paren to avoid x=x=x.
+
 2000-05-12  Kevin Buettner  <kevinb@redhat.com>
 
        * dwarf2read.c (dwarf2_const_value_data): Fix typo in sign
index 6c7ddcc..7b0ccf0 100644 (file)
@@ -2769,7 +2769,7 @@ parse_partial_symbols (objfile)
 #define CUR_SYMBOL_TYPE type_code
 #define CUR_SYMBOL_VALUE sh.value
 #define START_PSYMTAB(ofile,fname,low,symoff,global_syms,static_syms)\
-  pst = save_pst
+  (pst = save_pst)
 #define END_PSYMTAB(pst,ilist,ninc,c_off,c_text,dep_list,n_deps,textlow_not_set) (void)0
 #define HANDLE_RBRAC(val) \
   if ((val) > save_pst->texthigh) save_pst->texthigh = (val);
index 2a430d8..8af9671 100644 (file)
@@ -1389,7 +1389,7 @@ init_syscall_table (void)
 #if defined (SYS_yield)
   syscall_table[SYS_yield] = "yield";
 #endif
-};
+}
 
 /*
  * Prettyprint a single syscall by number.
index 80dee53..f94cd60 100644 (file)
@@ -490,7 +490,7 @@ ui_out_set_flags (uiout, mask)
      struct ui_out *uiout;
      int mask;
 {
-  int oldflags;
+  int oldflags = uiout->flags;
 
   uiout->flags |= mask;
 
@@ -503,7 +503,7 @@ ui_out_clear_flags (uiout, mask)
      struct ui_out *uiout;
      int mask;
 {
-  int oldflags;
+  int oldflags = uiout->flags;
 
   uiout->flags &= ~mask;