aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/printcmd.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 03a855f..24bf4da 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
+ * printcmd.c (print_scalar_formatted): Initialize val_long
+ to remove compiler warning message.
+
+2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
+
* defs.h (nquery, yquery): New prototypes.
* breakpoint.c (break_command_1): Use new nquery interface.
* utils.c (defaulted_query, nquery, yquery): New functions.
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 72da949..a93ddbf 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -347,7 +347,7 @@ void
print_scalar_formatted (void *valaddr, struct type *type, int format, int size,
struct ui_file *stream)
{
- LONGEST val_long;
+ LONGEST val_long = 0;
unsigned int len = TYPE_LENGTH (type);
if (format != 'f')