aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-64-tdep.c
diff options
context:
space:
mode:
authorMichal Ludvig <mludvig@suse.cz>2002-05-07 11:22:54 +0000
committerMichal Ludvig <mludvig@suse.cz>2002-05-07 11:22:54 +0000
commit4657573b80193b4716f3559b3bfef32fae0f974e (patch)
tree20ec6b2f13119c0d0076bb3d7608496e0cb9c953 /gdb/x86-64-tdep.c
parent3e3f011f9342b3ae7fd2f4b0e9a1484be6a31d60 (diff)
downloadgdb-4657573b80193b4716f3559b3bfef32fae0f974e.zip
gdb-4657573b80193b4716f3559b3bfef32fae0f974e.tar.gz
gdb-4657573b80193b4716f3559b3bfef32fae0f974e.tar.bz2
2002-05-07 Michal Ludvig <mludvig@suse.cz>
* dwarf2cfi.c: Code cleanup, removed unused variables, added default labels to switch {} statements. * x86-64-tdep.c: Ditto. * x86-64-linux-nat.c: Ditto.
Diffstat (limited to 'gdb/x86-64-tdep.c')
-rw-r--r--gdb/x86-64-tdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c
index 50b0227..9cd9813 100644
--- a/gdb/x86-64-tdep.c
+++ b/gdb/x86-64-tdep.c
@@ -195,7 +195,7 @@ x86_64_register_convert_to_virtual (int regnum, struct type *type,
char *from, char *to)
{
char buf[12];
- DOUBLEST d;
+
/* We only support floating-point values. */
if (TYPE_CODE (type) != TYPE_CODE_FLT)
{
@@ -426,6 +426,8 @@ classify_argument (struct type *type,
}
}
break;
+ default:
+ break;
}
/* Final merger cleanup. */
for (i = 0; i < words; i++)
@@ -488,6 +490,8 @@ classify_argument (struct type *type,
}
case TYPE_CODE_VOID:
return 0;
+ default: /* Avoid warning. */
+ break;
}
internal_error (__FILE__, __LINE__,
"classify_argument: unknown argument type");