From d589fe759d10f9bad3757590171b072e63a0fa9a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 23 Feb 2004 19:41:47 +0000 Subject: [PATCH] 2004-02-23 Jeff Johnston * printcmd.c (print_scalar_formatted): Initialize val_long to remove compiler warning message. --- gdb/ChangeLog | 5 +++++ gdb/printcmd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 03a855fcad..24bf4da1e9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2004-02-23 Jeff Johnston + * printcmd.c (print_scalar_formatted): Initialize val_long + to remove compiler warning message. + +2004-02-23 Jeff Johnston + * 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 72da9495c1..a93ddbf8dd 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') -- 2.11.0