aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-15 01:44:40 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-15 01:44:40 +0000
commit5bfb05ca594c81169234512fb4edd3d3f6833e16 (patch)
tree187c7a64d964f1b5f77ed60fcceab7c092aec178 /gdb/ui-out.c
parent5e6cbf410d036264fabdb28319642462d470f516 (diff)
downloadgdb-5bfb05ca594c81169234512fb4edd3d3f6833e16.zip
gdb-5bfb05ca594c81169234512fb4edd3d3f6833e16.tar.gz
gdb-5bfb05ca594c81169234512fb4edd3d3f6833e16.tar.bz2
Fix IRIX cc warnings. Fix ui_out functions that didn't return a value.
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r--gdb/ui-out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index 80dee53..f94cd60 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -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;