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 03a855fcadb34f50def595dd64cced9598083248..24bf4da1e9f5fecd8d4f22d52cf2ad9405a4a24d 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 72da9495c137a8df36b95ee5af70c862ddfbb1f8..a93ddbf8dd8755eb8698f15a0bca7d42652eaeef 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')