From 81cb7cc9593906916e1cdac22c0b8764a2c90114 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 03a855fcadb..24bf4da1e9f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 72da9495c13..a93ddbf8dd8 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.30.2