diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-03-28 21:42:32 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-03-28 21:42:32 +0000 |
commit | 93d56215df715181dba7f5275de9863f28a6c941 (patch) | |
tree | bfea01c982a361dfe8ad972cb291de3d8085a7c2 /gdb/sh-tdep.c | |
parent | 381bab78db8ce8d9a17929364bdc7901ac17e4f0 (diff) | |
download | gdb-93d56215df715181dba7f5275de9863f28a6c941.zip gdb-93d56215df715181dba7f5275de9863f28a6c941.tar.gz gdb-93d56215df715181dba7f5275de9863f28a6c941.tar.bz2 |
Gag -Wuninitialized warnings.
Add -Wuninitialized to default warning list.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index b414e77..6bf0bde 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -1766,7 +1766,10 @@ sh_do_fp_register (int regnum) print_spaces_filtered (15 - strlen (REGISTER_NAME (regnum)), gdb_stdout); /* Print the value. */ - printf_filtered (inv ? "<invalid float>" : "%-10.9g", flt); + if (inv) + printf_filtered ("<invalid float>"); + else + printf_filtered ("%-10.9g", flt); /* Print the fp register as hex. */ printf_filtered ("\t(raw 0x"); |