* python/py-type.c (make_fielditem): Add gdb_assert_not_reached

as 'default' in the switch.
This commit is contained in:
Tom Tromey 2013-05-20 20:25:40 +00:00
parent b86af38a5a
commit 0d3a2e8a79
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-05-20 Tom Tromey <tromey@redhat.com>
* python/py-type.c (make_fielditem): Add gdb_assert_not_reached
as 'default' in the switch.
2013-05-20 Tom Tromey <tromey@redhat.com>
* python/py-inferior.c (gdbpy_inferiors): Update. Hoist

View File

@ -301,6 +301,8 @@ make_fielditem (struct type *type, int i, enum gdbpy_iter_kind kind)
case iter_values:
item = convert_field (type, i);
break;
default:
gdb_assert_not_reached ("invalid gdbpy_iter_kind");
}
return item;