2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
authorJeff Johnston <jjohnstn@redhat.com>
Mon, 23 Feb 2004 19:41:47 +0000 (19:41 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Mon, 23 Feb 2004 19:41:47 +0000 (19:41 +0000)
        * printcmd.c (print_scalar_formatted): Initialize val_long
        to remove compiler warning message.

gdb/ChangeLog
gdb/printcmd.c

index 03a855f..24bf4da 100644 (file)
@@ -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.
index 72da949..a93ddbf 100644 (file)
@@ -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')