From: Tom Tromey Date: Mon, 20 May 2013 20:25:40 +0000 (+0000) Subject: * python/py-type.c (make_fielditem): Add gdb_assert_not_reached X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d3a2e8a797020b3fe5c70f1ad148c8a7297bbdb;p=binutils-gdb.git * python/py-type.c (make_fielditem): Add gdb_assert_not_reached as 'default' in the switch. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 12184a5ba6f..4894c0d0895 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-05-20 Tom Tromey + + * python/py-type.c (make_fielditem): Add gdb_assert_not_reached + as 'default' in the switch. + 2013-05-20 Tom Tromey * python/py-inferior.c (gdbpy_inferiors): Update. Hoist diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index b289a89e1fe..e29ae813e64 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -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;