summaryrefslogtreecommitdiff
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
commitcfc231aa1608699b60e26a14b757c2b4d5ce861c (patch)
treea796a19b55b7c636d37090920b29a0a02e1656d9 /gdb/ui-out.c
parent5ddc192d424b458b3b2d8cf146bbd598cabe1d1b (diff)
downloadgdb-cfc231aa1608699b60e26a14b757c2b4d5ce861c.tar.gz
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 80dee5305f4..f94cd6025b2 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;