2004-02-23 Jeff Johnston <jjohnstn@redhat.com>

* printcmd.c (print_scalar_formatted): Initialize val_long
        to remove compiler warning message.
This commit is contained in:
Jeff Johnston 2004-02-23 19:41:47 +00:00
parent c38f98038d
commit 81cb7cc959
2 changed files with 6 additions and 1 deletions

View 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.

View 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')