* python/py-type.c (make_fielditem): Add gdb_assert_not_reached
authorTom Tromey <tromey@redhat.com>
Mon, 20 May 2013 20:25:40 +0000 (20:25 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 20 May 2013 20:25:40 +0000 (20:25 +0000)
as 'default' in the switch.

gdb/ChangeLog
gdb/python/py-type.c

index 12184a5ba6f344b05a0faa5e9e36e4460ddeb7ab..4894c0d089513af380bb491442c12aa2eabcf298 100644 (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
index b289a89e1fe395a1ee244ce6c396d034272b9153..e29ae813e647c263bb0431aca3d003bed6515a26 100644 (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;
   
This page took 0.027582 seconds and 4 git commands to generate.